prepData | R Documentation |
Preprocessing of the tracking data
prepData(
trackData,
type = c("LL", "UTM"),
coordNames = c("x", "y"),
LLangle = NULL
)
trackData |
A dataframe of the tracking data, including at least coordinates
(either longitude/latitude values or cartesian coordinates), and optionnaly a field |
type |
|
coordNames |
Names of the columns of coordinates in the data frame. Default: |
LLangle |
Logical. If TRUE, the turning angle is calculated with |
An object moveData
, i.e. a dataframe of:
ID |
The ID(s) of the observed animal(s) |
step |
The step lengths - in kilometers if longitude/latitude provided, and in the metrics of the data otherwise |
angle |
The turning angles (if any) - in radians |
x |
Either Easting or longitude (or e.g. depth for 1D data) |
y |
Either Northing or latitude (all zero if 1D data) |
... |
Covariates (if any) |
coord1 <- c(1,2,3,4,5,6,7,8,9,10)
coord2 <- c(1,1,1,2,2,2,1,1,1,2)
trackData <- data.frame(coord1=coord1,coord2=coord2)
d <- prepData(trackData,type='UTM',coordNames=c("coord1","coord2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.