RelativeWaterContent: Relative Water Content (RWC)

Description Usage Arguments Details Value Examples

View source: R/RelativeWaterContent.R

Description

Calculates relative water content (RWC, %)

Usage

1
2
3
4
5
6
RelativeWaterContent(
  data,
  fresh.mass = "fresh.mass",
  dry.mass = "dry.mass",
  fresh.mass.saturated = "fresh.mass.saturated"
)

Arguments

data

data frame with columns of equal length containing at least columns with the fresh mass (g), the dry mass (g) and the saturated fresh mass (g)

fresh.mass

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

dry.mass

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

fresh.mass.saturated

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

Details

Relative water content (%) is calculated as:

RWC = 100 * ((FM - DM) (FMs - DM)^-1)

whereas FM = fresh mass, DM = dry mass and FMs = fresh mass at water saturation.

Value

the original data frame extended by a numeric column with the relative water content (RWC) (%).

Examples

1
2
3
4
5
# get example data
df <- pressure_volume_data

# extend df by RWC
df_with_RWC <- RelativeWaterContent(df)

pvcurveanalysis documentation built on Oct. 13, 2021, 5:08 p.m.