is_hifld_id | R Documentation |
Returns TRUE if the given ID is a valid HIFLD, includes a parameter to return FALSE vs. NA if the given ID is NA.
is_hifld_id(id, hifld_data = NULL, missing_as_na = T)
id |
integer or character string of the ID to check |
hifld_data |
data frame with HIFLD information |
missing_as_na |
logical, whether NA should return NA (vs. FALSE) |
logical, TRUE if the given ID is a valid HIFLD ID
is_hifld_id(10002598) is_hifld_id(c(10002598, 123, NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.