Description Usage Arguments Author(s) See Also Examples
This method creates an object of type MoveBB
or MoveBBStack
.
1 2 3 4 5 6 | ## S4 method for signature 'ANY,ANY,missing,ANY,ANY,ANY'
moveBB(x,y,var,time,data,proj,...)
## S4 method for signature 'ANY,ANY,numeric,ANY,missing,ANY'
moveBB(x,y,var,time,data,proj,...)
## S4 method for signature 'numeric,numeric,numeric,POSIXct,data.frame,ANY'
moveBB(x,y,var,time,data,proj,sensor='unknown',animal='unnamed',...)
|
x |
vector of x coordinates(e.g. |
y |
vector of y coordinates |
var |
vector of location variances |
time |
column indicator for non-Movebank data for the time stamps, with POSIXct conversion, i.e. |
data |
Optional extra data associated with the relocations, if empty it is filled with the coordinates and timestamps |
proj |
projection method; requires a valid CRS (see |
sensor |
sensor name, either single character or a vector with length of the number of coordinates |
animal |
animal ID or name, either single character or a vector with length of the number of coordinates |
... |
Additional arguments |
Stef Sijben
moveBBStack
, MoveBB
, MoveBBStack
1 2 3 4 5 6 7 8 9 10 11 | data(vervet_monkeys)
head(monkey.data)
## Generates an object of type MoveBBStack, where the individual trajectories
## are identified by the value of the "GroupDayNo" field.
tr <- moveBB(monkey.data$X, monkey.data$Y, monkey.data$StdDev^2,
monkey.data$DateTime, animal=monkey.data$GroupDayNo,
data=monkey.data, proj="+proj=utm +zone=36 +south ellps=WGS84")
split(tr) ## Get a list of MoveBB objects
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.