dts_accumulated: Accumulated

View source: R/accumulated.R

dts_accumulatedR Documentation

Accumulated

Description

Calculates DateTime when reach accumulated total.

Usage

dts_accumulated(
  x,
  dtt = "DateTime",
  colname = "Value",
  accum = c(Hatch = 320),
  units = "days"
)

Arguments

x

A dts data frame

dtt

A string specifying the column with the Date or POSIXct values.

colname

A character vector specifying the column(s) with the other values.

accum

A uniquely named vector of the accumulation thresholds.

units

A string of the accumulation units. If the accumulation units differ from the dtt units the accumulation units are automatically converted.

Value

The modified DateTime series data frame.

Examples

dts_accumulated(dts_data[1:5,], colname = "Value2", 
  accum = c(Hatch = 40), units = "hours")

poissonconsulting/dts documentation built on March 10, 2024, 6:21 a.m.