Check Nereocystis nitrogen data
Source:R/kb_check_data_nitrogen_nereo.R
kb_check_data_nitrogen_nereo.RdCheck that data contains the columns required to fit the
Nereocystis luetkeana nitrogen model, with appropriate types and values.
Usage
kb_check_data_nitrogen_nereo(
data,
x_name = chk::deparse_backtick_chk(substitute(data))
)Details
Each row is one dried tissue sample. Required columns:
sample_mass_mg, the mass of the dried tissue sample analysed (mg, > 0).nitrogen_mass_ug, the mass of nitrogen measured in the sample (µg, > 0 and less than the sample mass).
Other columns are ignored.
A warning gives the number of samples whose nitrogen fraction (nitrogen mass over sample mass) falls outside 0.002 to 0.05, 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_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
data <- data.frame(sample_mass_mg = c(2.5, 2.3), nitrogen_mass_ug = c(48, 41))
kb_check_data_nitrogen_nereo(data)