Check that data contains the columns required to fit the Nereocystis
luetkeana wet/dry model, with appropriate types and values.
Usage
kb_check_data_wetdry_nereo(
data,
x_name = chk::deparse_backtick_chk(substitute(data))
)Details
Each row is one tissue sample. Required columns:
wet_mass_g, the mass of the tissue sample before drying (g, > 0).dry_mass_g, the mass of the tissue sample after drying (g, > 0 and < wet_mass_g).
Other columns are ignored.
A warning gives the number of samples whose dry:wet ratio falls outside 0.02 to 0.50, the plausible range for kelp tissue; they are kept.
See also
Other data checks:
kb_check_data_carbon_macro(),
kb_check_data_carbon_nereo(),
kb_check_data_cover_calibration_macro(),
kb_check_data_cover_calibration_nereo(),
kb_check_data_nitrogen_macro(),
kb_check_data_nitrogen_nereo(),
kb_check_data_size_census_macro(),
kb_check_data_size_census_nereo(),
kb_check_data_size_sample_nereo(),
kb_check_data_survey_canopy(),
kb_check_data_survey_in_situ(),
kb_check_data_weight_macro(),
kb_check_data_weight_nereo(),
kb_check_data_wetdry_macro(),
kb_data_columns(),
kb_datasets()
Examples
data <- data.frame(wet_mass_g = c(12.4, 58.7), dry_mass_g = c(1.1, 5.0))
kb_check_data_wetdry_nereo(data)