Description Usage Arguments Value Examples
View source: R/tte_calc_toevent.R
Calculate time-to-event
1 | tte_calc_toevent(df, effort, samp_per)
|
df |
df object |
effort |
effort from effort_fn() |
samp_per |
sampling period length. The mean length of time for an animal to pass through a camera viewshed |
a dataframe with the same rows as occ, with a TTE column
1 2 3 4 5 6 7 8 9 10 11 12 | df <- data.frame(
cam = c(1,1,2,2,2),
datetime = as.POSIXct(c("2016-01-02 12:00:00",
"2016-01-03 13:12:00",
"2016-01-02 12:00:00",
"2016-01-02 14:00:00",
"2016-01-03 16:53:42"),
tz = "GMT"),
count = c(1, 0, 2, 1, 2)
)
eff <- effort_fn(deploy, occ)
tte_calc_toevent(df, eff)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.