powered by
Calculates relative water content (RWC, %)
RelativeWaterContent(data, fresh.weight = "fresh.weight", dry.weight = "dry.weight", fresh.weight.saturated = "fresh.weight.saturated")
data frame with columns of equal length containing at least columns with the fresh weight (g), the dry weight (g) and the saturated fresh weight (g)
optional name of the column in data containing the numeric fresh weight values (g); default: "fresh.weight"
optional name of the column in data containing the numeric dry weight values (g); default: "dry.weight"
optional name of the column in data containing the numeric saturated fresh weight values (g); default: "fresh.weight.saturated"
the original data frame extended by a numeric column with the relative water content (RWC) (%).
Relative water content (%) is calculated as: $$RWC = 100 * ((FW - DW) (FWs - DW)^-1)$$ whereas FW = fresh weight, DW = dry weight and FWs = fresh weight at water saturation.
# NOT RUN { # get example data df <- leaf_drying_data # extend df by RWC df_with_RWC <- RelativeWaterContent(df) # }
Run the code above in your browser using DataLab