check_exposure: Add time columns to time-series

View source: R/check_exposure.R

check_exposureR Documentation

Add time columns to time-series

Description

Add time (in seconds since tagon and perhaps as datetimes in UTC and/or local timezone) to a tibble or data-frame with regularly sampled data

Usage

check_exposure(x, start_x, rl_data)

Arguments

x

input data: vector or data frame with event times in seconds since tagon.

start_x

name (no quotes needed) of variable in x that gives event times. Not needed if x is a vector or has only one column.

rl_data

dataset with RL data (output of extract_rls)

Value

A data.frame with the data and additional columns exposure_EventID (the ID number of the exposure event(s) during which this timestamp falls) and event_type (the type(s) of exposure events that were going on at this timestamp)


stacyderuiter/FBtagtools documentation built on June 1, 2025, 6:26 p.m.