| Extract.ltraj {adehabitat} | R Documentation |
Extract or replace subsets of objects of class ltraj.
x[i, id, burst] x[i, id, burst] <- value
x |
an object of class ltraj |
i |
the elements to extract or replace. i is
numeric |
id |
a vector indicating the identity of the animals to extract or replace |
burst |
a vector indicating the identity of the bursts of relocations to extract or replace |
value |
an object of class ltraj |
Objects of class ltraj contain several bursts of
relocations. This function subsets or replaces these bursts, based
on their indices or on the attributes id and burst.
An object of class ltraj.
Clément Calenge calenge@biomserv.univ-lyon1.fr
data(puechcirc) puechcirc ## Extract the second and third bursts (toto <- puechcirc[2:3]) ## Extracts all bursts collected on the animal JE puechcirc[id = "JE93"] ## Replace one burst (toto[2] <- puechcirc[1:2])