pDrift: 'pDrift' Drift rate and weight calculations

Description Usage Arguments Details Author(s) See Also Examples

View source: R/pDrift.R

Description

pDrift Drift rate and weight calculations

Usage

1
pDrift(data = dive, depth.wpar = c(100, 30), plotit = F, keep.all = T)

Arguments

data

Data frame with dive data output from the rbs function.

depth.wpar

Set mean ad standard deviation of half gaussian for depth weighting

plotit

Logical, plot results or not

keep.all

Logical, keep all data or only data containing valid drift rates and weights

Details

Takes a dive set of dive data from SRDLs (Sea Mammal Research Unit), and calculates drift rate based on segment between first two extracted inflection points, along with probability weights for each dive being a drift dive.

Author(s)

Martin Biuw

See Also

rbs Reverse Broken Stick algorithm

check.pDrift to interactively check drift dive weightings

fitDrate To fit state-space model to weighted data to estimate drift rate change over time

fitPlot To plot output from fitDrift

Other Drift dive functions: check.pDrift(), fitDrate(), fitPlot(), rbs()

Examples

1
2
3
rbs(data=dive, num=100, n.bs=4)
dive <- rbs(data=dive, num=NA, n.bs=4)
dive <- pDrift(dive)

embiuw/drifteR documentation built on March 1, 2021, 6:40 a.m.