View source: R/add_conservation_calcs.R
| add_conservation_calcs | R Documentation |
Appends columns for conservation-risks: mould risk, preservation indices, equilibrium moisture, and moisture content for wood to a dataframe with temperature and relative humidity columns.
add_conservation_calcs(mydata, Temp = "Temp", RH = "RH", ...)
mydata |
A dataframe containing temperature and relative humidity data. |
Temp |
Character string name of the temperature column (default "Temp"). |
RH |
Character string name of the relative humidity column (default "RH"). |
... |
Additional parameters passed to humidity calculation functions. |
Dataframe augmented with conservation variables:
Mould risk threshold humidity from Zeng equation (numeric).
If there is a risk of mould from Zeng equation. Adds label: "Mould risk" or "No risk".
Mould growth rate index from Zeng equation, labelled output.
Mould risk index from VTT model (continuous scale).
Preservation Index for collection longevity.
Lifetime Multiplier for object material degradation risk.
Wood equilibrium moisture content (%) under current climate conditions.
calcMould_Zeng for 'Mould_LIM', 'Mould_risk', 'Mould_rate'
calcMould_VTT for 'Mould_index'
calcPI for 'PreservationIndex'
calcLM for 'Lifetime'
calcEMC_wood for 'EMC_wood'
# mydata file
filepath <- data_file_path("mydata.xlsx")
mydata <- readxl::read_excel(filepath, sheet = "mydata", n_max = 5)
mydata |> add_conservation_calcs() |> dplyr::glimpse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.