Description Usage Arguments Details Value Author(s) Examples
function to automatically re-cast a "vector" object to a given "class" specified by
the to
argument.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
object |
either an |
to |
|
If object
is a valid R
spatial object, it is automatically converted to an object of
a different class if needed (e.g., from sf
to 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 sf
or Spatial
object through
sprawl::read_vect
returns the same object, casted to the "class" specified by to
(or the exact same
object in case object
is already of "class" to
)
Lorenzo Busetto, phD (2017) lbusett@gmail.com
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.