ltraj2sf | R Documentation |
The function ltraj2sf
is a simple function for converting ltraj to sf objects.
ltraj2sf(traj, type = "point")
traj |
an object of the class |
type |
One of |
The function ltraj2sf
can be used to convert an ltraj
object into an sf
spatial object (either as points or lines).
A sf
object either points or lines.
conSpatial,sf2ltraj
data(deer)
#points
deer_pt <- ltraj2sf(deer)
plot(deer_pt['id'])
#lines
deer_ln <- ltraj2sf(deer,type='line')
plot(deer_ln['id'])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.