build_occ: Build sampling occasions

Description Usage Arguments Value Examples

View source: R/build_occ.R

Description

Build sampling occasions

Usage

1
build_occ(samp_freq, samp_length, study_start, study_end)

Arguments

samp_freq

numeric, The number of seconds between the start of each sampling occasion

samp_length

numeric. The number of seconds to sample at each sampling occasion

study_start

POSIXct. The start of the study

study_end

POSIXct. The end of the study

Value

a dataframe

Examples

1
2
3
4
5
  study_dates <- as.POSIXct(c("2016-01-01 00:00:00", "2016-01-04 23:59:59"), tz = "GMT")
  build_occ(samp_freq = 3600, 
            samp_length = 10,
            study_start = study_dates[1],
            study_end = study_dates[2])

annam21/TTE.STE.IS documentation built on Dec. 24, 2021, 8:42 a.m.