dts_accumulated | R Documentation |
Calculates DateTime when reach accumulated total.
dts_accumulated(
x,
dtt = "DateTime",
colname = "Value",
accum = c(Hatch = 320),
units = "days"
)
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. |
The modified DateTime series data frame.
dts_accumulated(dts_data[1:5,], colname = "Value2",
accum = c(Hatch = 40), units = "hours")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.