add_exp_trt_levels.Rd
The add_exp_trt_levels function adds the unit levels (e.g., Plot, Watershed, warming, precip) as new columns in the homogenized output. New columns employ the naming convention of experiment or treatment level '_level' (e.g., L2_level).
add_exp_trt_levels(frame, profileData, experimentTreatmentVarSet)
frame | a data frame or, more likely, a date frame in a list |
---|
A modified object of type Tibble or data frame
add_exp_trt_levels is intended as a helper function for the main data_homogenization.R of the soilHarmonization package. As such, this function requires the profileData object that is part of the data_harmonization.R workflow and will not work outside of that workflow.