| ld | R Documentation |
The two functions ld and dl are useful to quickly
convert objects of class ltraj from and to dataframes.
ld(ltraj)
dl(x, proj4string=CRS())
ltraj |
an object of class |
x |
an object of class |
proj4string |
a valid CRS object containing the projection information. |
The function ld concatenates all bursts in an object of class
ltraj, adds two columns named id and burst, and,
when it is present, also adds the variables in the infolocs
component.
The function dl creates an object of class ltraj from a
data.frame. If no column named id exists, a random ID
is generated. If no column named burst exists, the ID is used
as burst. The columns named "dx", "dy", "dist", "dt", "R2n",
"abs.angle" and "rel.angle" are recomputed by the function (see
?as.ltraj). Additional columns are used as the infolocs
component.
ld returns an object of class data.frame.
dl returns an object of class ltraj.
Clement Calenge clement.calenge@ofb.gouv.fr
as.ltraj for additional information about objects of
class ltraj
data(puechcirc)
puechcirc ## class ltraj
uu <- ld(puechcirc)
head(uu)
dl(uu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.