function to automatically re-cast a "vector" object to a given "class" specified by
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
object is a valid
R spatial object, it is automatically converted to an object of
a different class if needed (e.g., from
Spatial and viceversa, or from
sf to a
vector file through
sprawl::write_shape). If it is a character string, the function checks if
it corresponds to a valid vector file and reads it to a
Spatial object through
returns the same object, casted to the "class" specified by
to (or the exact same
object in case
object is already of "class"
Lorenzo Busetto, phD (2017) [email protected]
1 2 3 4
## Not run: #EXAMPLE1 ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.