sf2ltraj | R Documentation |
The function sf2ltraj
is a simple function for converting sf objects to ltraj objects.
sf2ltraj(sfp, date, id)
sfp |
an object of the class |
date |
the name of the column containing the date-time information of each fix. Must be converted to a POSIXct type. |
id |
either a character string indicating the identity of the animal or the name of the column with the ID of the individuals. |
The function sf2ltraj
can be used to convert an sf
object (stored as points) into an ltraj
object.
A ltraj
object. For more information on objects of this type see help(ltraj)
and ?as.ltraj
.
conSpatial, ltraj2sf
data(deer)
#points
deer_pt <- ltraj2sf(deer)
deer_tr <- sf2ltraj(deer_pt, date='date', id='id')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.