add_expo: Add exposure columns to DTag data frame

View source: R/dtag.R

add_expoR Documentation

Add exposure columns to DTag data frame

Description

Add exposure columns to DTag data frame

Usage

add_expo(data, expo)

Arguments

data

Data frame, at least with columns 'tagID', 'ID' (dive ID), and 'time'

expo

Data frame with one row for each exposure event, and one column each for 'tagID', 'start' and 'end'

Value

Input data frame with additional columns for

  • expoeither 'before', 'during' or 'after' (an exposure event)

  • expo_dive'yes' for exposure dives, 'no' for other dives

  • expo_timetime since start of exposure (0 before)


TheoMichelot/utilTM documentation built on April 14, 2025, 12:52 p.m.