Standardize diatoms code
clean_diatom_code.Rd
This function standardizes diatoms code.
Arguments
- code
a character vector of abbreviations
- keep_non_matches
If
TRUE
(the default) an element ofcode
that can't be matched to any of the internal mapping vectors will be kept as is. Otherwise it will be replaced withNA
.
Value
A character vector with the length of code
and cleaned the diatoms code
if they are included in diatom_code_abbr_mapping
.
Non matches may be replaced with NA
(depending on the value of keep_non_matches
).