View source: R/fcts packages.R
loop | R Documentation |
Extract the adjancency matrix and calculate network metrics for all individuals in a trajectory object. Also calculate mean speed, mean direction, and dot product of turning angles
loop(traj, res = 100)
traj |
An object produce by the function adehabitatLT with multiple individuals |
res |
Grid size, will be apply to all individuals |
A list object containing a raster stack object for each individual
data(puechabonsp)
locs <- puechabonsp$relocs
xy <- coordinates(locs)
df <- as.data.frame(locs)
da <- as.character(df$Date)
da <- as.POSIXct(strptime(as.character(df$Date),"%y%m%d", tz="Europe/Paris"))
litr <- as.ltraj(xy, da, id = id)
out1<-loop(litr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.