tte_samp_per: Sampling period length

Description Usage Arguments Value Warning Examples

View source: R/tte_samp_per.R

Description

Sampling period length

Usage

1
tte_samp_per(deploy, lps)

Arguments

deploy

deploy object

lps

movement speed in length units (same as camera area measurement) per second

Value

The average length of time, in seconds, needed to cross a camera viewshed

Warning

This function only calculates a rough estimate of the time needed to move across a camera. There may be better ways.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
deploy <- data.frame(
  cam = c(1, 2, 2, 2),
  start = as.POSIXct(c("2015-12-01 15:00:00",
                       "2015-12-08 00:00:00", 
                       "2016-01-01 00:00:00", 
                       "2016-01-02 00:00:00"),
                     tz = "GMT"),
  end = as.POSIXct(c("2016-01-05 00:00:00", 
                     "2015-12-19 03:30:00", 
                     "2016-01-01 05:00:00",
                     "2016-01-05 00:00:00"), 
                   tz = "GMT"),
  area = c(300, 200, 200, 450)
)
samp_per(deploy, lps = 2)

annam21/spaceNtime documentation built on Dec. 12, 2021, 2:48 a.m.