Skip to contents

Check that data has the columns and values needed to predict canopy biomass with kb_predict_biomass_canopy(), which applies the same check to its new_data.

Usage

kb_check_data_survey_canopy(
  data,
  x_name = chk::deparse_backtick_chk(substitute(data))
)

Arguments

data

A data frame of canopy maps, one row per map.

x_name

A string naming the data for error messages.

Value

data, invisibly.

Details

Each row is one canopy map of a site; a site-year may have several. Required columns:

  • site, the site mapped (any text).

  • year, the year of the map (whole number or text).

  • canopy_area_m2, the canopy area mapped (m², >= 0 and <= classified_area_m2).

  • canopy_tide_height_m, the tide height when the canopy was imaged, relative to chart datum (m, any number).

  • classified_area_m2, the water area the canopy classification covered, including water where no canopy was found (m², > 0).

Other columns are ignored.

Other grouping columns, such as region, can be named in pool_by.

Examples

kb_check_data_survey_canopy(data_survey_canopy_sim_nereo)