check_species_codes: Check for invalid species codes

Description Usage Arguments Value Examples

Description

Check a dataframe of quadrat data for invalid plant species codes. This function will flag species codes that are the incorrect case (species codes are assumed to be in all upper-case), as well as NA and missing values.

Usage

1
check_species_codes(df, column_name, specieslist)

Arguments

df

Data frame of quadrat data

column_name

Name of column in df containing species codes

specieslist

Vector of valid species codes

Value

Rows from df containing invalid species codes, plus additional columns indicating error_type and error_value. If there are no errors, this will return an empty data frame.

Examples

1
check_species_codes(dataframe, column_name = 'Species', specieslist = sp_list$USDA_codes)

emchristensen/quadprocessing documentation built on May 4, 2019, 4:15 a.m.