Skip to contents

This function is used to aggregate abundance data into one column (pct_cover). Abundance can come from four columns: "akstratumcoverclasspct", "speciescancovpct", "speciescomppct", and "understorygrcovpct". If the same record uses multiple abundance columns, pct_cover is calculated as the average of those values. When only one abundance column is used for a record, that value is used for pct_cover.

Usage

QC_aggregate_abundance(veg_df, fail_on_dup = FALSE)

Arguments

fail_on_dup

logical - whether the function should fail if any records have multiple abundance columns populated.

Value

dataframe with one abundance column

Examples

QC_aggregate_abundance(veg_df = B100_veg)
#> Error: object 'B100_veg' not found