Create and save spatial objects within the Rstudio IDE. Objects
can then be saved to file types such as .geojson
or .shp
.
Objects are also output to the console and can be assigned to a variable
using .Last.value
. If you wish to pass the output directly to a variable
simply call the addin function, ie. new_sf <- createFeatures()
.
An existing sf data.frame
can also be passed either indirectly by
selecting text in RStudio with the name of the object, or directly by
passing the existing sf object to new_sf <- createFeatures(existing_sf)
.
When passing an existing sf object you can only add and edit additional features,
the existing features cannot be changed.
createFeatures(SF_OBJECT = NULL)
sf object and/or saved to file
sf Simple feature collection