PhenologyValidator.Rd
This class is used to validate phenology data.
a list with lenient and strict validation
LENIENT_PATTERN
Regular expression patterns for lenient validation
STRUCT
Regular expression patterns for strict validation'
PATTERNS
Regular expression patterns for validating individual fields
ACCEPTABLE_CODES
Data frame of acceptable phenology codes and species
PREVIOUS_SPECIES
List of previously observed species
missing_species
List of species that were found in data but are not in the acceptable codes
new()
Regular expression patterns for strict validation
Regular expression patterns for strict validation
Regular expression patterns for validating individual fields
Data frame of acceptable phenology codes and species
List of previously observed species
Initialize the PhenologyValidator class
PhenologyValidator$new(
csv_path =
"descriptions/Nuolja Master Documents/Accepted_PhenoCodes_Species_CURRENT.csv"
)
validateField()
List of species that were found in data but are not in the acceptable codes
Validate individual fields in a line of phenology data
phenology_validator <- PhenologyValidator$new()
#> Warning: cannot open file 'descriptions/Nuolja Master Documents/Accepted_PhenoCodes_Species_CURRENT.csv': No such file or directory
#> Error in file(file, "rt"): cannot open the connection
phenology_validator$validate("species, date, subplot, code")
#> Error in eval(expr, envir, enclos): object 'phenology_validator' not found