Description Usage Arguments Value
Check a character string to see if it's a valid DIMA/AIM unknown plant code. Additionally, try to assign growth habit and duration for that code if possible.
1 | check.code(code, valid.structure = "^(AF|AG|PF|PG|SH|TR)\\d{2,3}$")
|
code |
Character string. The string to check against the unknown plant code patterns |
valid.structure |
Regular expression as a character string. Define what the acceptable structure is for unknown plant codes. Defaults to the AIM format of |
A named list with three values. valid
is logical and indicates if the code was a valid unknown. The remaining values match the style of DIMA's tblSpeciesGrowthHabit
. habit
, a character string, will be NULL
if the code was not valid and either "Woody"
or "Non-woody"
as appropriate if it was valid. subhabit
, a character string, will be NULL
if the code was not valid and "Forb/herb"
, "Graminoid"
, "Shrub"
, or "Tree"
as appropriate if it was valid. duration
, a character string, will be NULL
if the code was not valid and either "Annual"
or "Perennial"
as appropriate if it was valid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.