Check Nereocystis size sample data
Source:R/kb_check_data_size_sample_nereo.R
kb_check_data_size_sample_nereo.RdCheck that data contains the columns required to fit the Nereocystis
luetkeana size model, with appropriate types and values.
Usage
kb_check_data_size_sample_nereo(
data,
x_name = chk::deparse_backtick_chk(substitute(data))
)Details
Each row is one measured plant, linked to a site and year rather than to a specific in situ survey. Required columns:
diameter_mm, the plant diameter, measured as in the weight data (mm, > 0).site, the site the plant was measured at (any text).year, the year the plant was measured (whole number or text).
Other columns are ignored.
See also
kb_check_data_size_census_nereo() for every plant a survey
counted.
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_survey_canopy(),
kb_check_data_survey_in_situ(),
kb_check_data_weight_macro(),
kb_check_data_weight_nereo(),
kb_check_data_wetdry_macro(),
kb_check_data_wetdry_nereo(),
kb_data_columns(),
kb_datasets()
Examples
data <- data.frame(
diameter_mm = c(22, 41), site = factor(c("a", "b")), year = c(2020, 2021)
)
kb_check_data_size_sample_nereo(data)