Check Macrocystis cover calibration data
Source:R/kb_check_data_cover_calibration_macro.R
kb_check_data_cover_calibration_macro.RdCheck that data has the columns and values needed to fit the
Macrocystis pyrifera cover calibration model.
Usage
kb_check_data_cover_calibration_macro(
data,
x_name = chk::deparse_backtick_chk(substitute(data))
)Details
data is the output of kb_predict_biomass_in_situ(), one row per in situ
survey.
Required columns:
biomass_kg_m2, the draws of the survey's wet biomass per m² (kg/m², >= 0).site, the site surveyed (any text).year, the year of the survey (whole number or text).plot_area_m2, the area of the plot polygon bounding the survey area that the canopy cover is measured over (m², > 0, or missing).canopy_area_m2, the canopy area delineated within the plot polygon (m², >= 0 and <= plot_area_m2, or missing).canopy_tide_height_m, the tide height when the canopy was imaged, relative to chart datum (m, any number, or missing).
Other columns are ignored.
The plot cover columns are given or missing together; a row without them is not fitted.
See also
Other data checks:
kb_check_data_carbon_macro(),
kb_check_data_carbon_nereo(),
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_check_data_wetdry_nereo(),
kb_data_columns(),
kb_datasets()
Examples
biomass <- kb_predict_biomass_in_situ(
fit_weight_sim_macro,
data_size_census_sim_macro,
data_survey_in_situ_sim_macro,
progress = "none"
)
kb_check_data_cover_calibration_macro(biomass)