RWDInterval {pvldcurve}R Documentation

Mean relative water deficit (RWD) of an interval

Description

Calculates relative water deficit (%) as mean value of a measurement interval

Usage

RWDInterval(data, sample = "sample", fresh.weight = "fitted.fw",
  dry.weight = "dry.weight",
  fresh.weight.saturated = "fresh.weight.saturated")

Arguments

data

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), ordered by sample by descending by fresh weight. 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"

fresh.weight

optional name of the column in data containing the numeric fresh weight values (g); default: "fitted.fw"

dry.weight

optional name of the column in data containing the numeric dry weight values (g); default: "dry.weight"

fresh.weight.saturated

optional name of the column in data containing the numeric saturated fresh weight values (g); default: "fresh.weight.saturated"

Details

First, the mean fresh weight is calculated for each measurement interval. Relative water deficit (%) is then calculated as:

RWD = 100 - 100 * ((mFW - DW) (FWs - DW)^-1)

whereas mFW = mean fresh weight, DW = dry weight and FWs = fresh weight at water saturation.

Value

the original data frame extended by a numeric column with the mean relative water deficit for the measurement interal (RWD.interval) (%).

Examples

# get example data
df <- leaf_drying_data

# extend df by RWD
df_with_RWD <- RWDInterval(df, fresh.weight = "fresh.weight")


[Package pvldcurve version 1.2.6 Index]