
Last chance! 50% off unlimited learning
Sale ends in
Calculates weight changes between temporally repeated measurements
WeightDifference(data, sample = "sample",
fresh.weight = "fresh.weight")
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.
optional name of the column in data containing the sample ID, default: "sample"
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.
# NOT RUN {
# get example data
df <- leaf_drying_data
# extend df by weight difference
df_with_WD <- WeightDifference(df)
# }
Run the code above in your browser using DataLab