Learn R Programming

ForestElementsR (version 2.0.1)

all_codes_allowed: Check Species Codes for Compliance with a Given Coding

Description

Check Species Codes for Compliance with a Given Coding

Usage

all_codes_allowed(x, coding)

Value

A list with two elements: 1) rqmt_ok which is TRUE if the requirement is fulfilled and FALSE otherwise; 2) err_message, the body of an error message to be used by the calling function (mentions all problematic elements of x)

Arguments

x

Object of one of the fe_species_id classes or a character vector

coding

Name of the coding against which x is to be checked. Must be one of the entries in the column species_coding in the data file species_codings