getVT: Generate vector statistics

Description Usage Arguments Details Value See Also Examples

Description

Get VT

Usage

1
getVT(track, units = "hours", geoDist = FALSE)

Arguments

track

a track object generated using processMovedata

units

one of ('secs', 'mins', 'hours', 'days') used to identify the unit of time for output (default = 'hours').

geoDist

to estimate step lengths using the x/y coordinate units (FALSE) or the WGS ellipsoidal distances using LonLat (uses the function pointDistance(..., lonlat=TRUE) from raster package).

Details

Generates vector (i.e., movement) statistics for a track object.

Value

Returns the original data frame with "z", "z.start", "z.end" (complex numbers indicating location), 'stepLength' (step length), 'phi' and 'theta' (absolute and relative turning angles, respectively), 't.start', 't.end', 't.mid' (numeric time), dT (difference in time over step), 'v' (velocity, default meters / hour), and 't.mid.POSIX' (time mid point in POSIX).

See Also

processMovedata, pointDistance

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
### Enter Login and Password information for Movebank
# login <- movebankLogin(username="xxxx", password="xxxx")

# Download data
ds <- getMovebankData(study="ABoVE: NPS Dall Sheep Lake Clark", login=login) 

# Process data for use in above package
ds.mt <- processMovedata(ds,  idcolumn = "individual_id", projTo = '+init=epsg:3338', 
                        keepCols = c('sex'), dailymean = TRUE)

# Summarize and find individual
ds.vt <- getVT(ds.mt, units = 'hours', geoDist = FALSE)

ABoVE-AotM/above documentation built on May 28, 2020, 6:08 a.m.