moveBB: Create a 'MoveBB' object

Description Usage Arguments Author(s) See Also Examples

Description

This method creates an object of type MoveBB or MoveBBStack.

Usage

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',...)

Arguments

x

vector of x coordinates(e.g. data$x)

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. as.POSIXct(data$timestamp, format="%Y-%m-%d %H:%M:%S", tz="UTC")

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 CRS-class) object, like CRS("+proj=longlat +ellps=WGS84"); default is NA

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

Author(s)

Stef Sijben

See Also

moveBBStack, MoveBB, MoveBBStack

Examples

 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

moveBB documentation built on May 2, 2019, 5:50 p.m.

Related to moveBB in moveBB...