Description Usage Arguments Value Examples
View source: R/TimeSinceStart.R
Calculates time since start (min) of measurement for temporally repeated measurements
1 2 | TimeSinceStart(data, sample = "sample",
date.and.time = "date.and.time")
|
data |
data frame containing at least a column giving the the time (and date) of the measurements ordered by sample and chronologically. A column containing the sample IDs is optionally required if several samples were measured. |
sample |
optional name of the column in data containing the sample IDs, default: "sample". |
date.and.time |
optional name of the column in data containing the time (and date) as class POSIXct, default: "date.and.time" |
The original data frame extended by a numerical vector containing time since start (min) of the measurements.
1 2 3 4 5 | # get example data frame
df <- leaf_drying_data
# extend df by time since start
df_with_tss <- TimeSinceStart(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.