Description Usage Arguments Value Examples
View source: R/WeightDifference.R
Calculates weight changes between temporally repeated measurements
1 2 | WeightDifference(data, sample = "sample",
fresh.weight = "fresh.weight")
|
data |
data frame containing at least a numeric column containing the measured weights (g), ordered chronologically by sample. 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 ID, default: "sample" |
fresh.weight |
optional name of the column in data containing the numeric fresh weight (g) values, default: "fresh.weight" |
the original data frame extended by a numeric column containing the absolute differences in fresh weight (g) beween the measurements of a sample. The first value of each sample is NA since weight differences are computed from row i and i-1.
1 2 3 4 5 | # get example data
df <- leaf_drying_data
# extend df by weight difference
df_with_WD <- WeightDifference(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.