is_hifld_id: Returns TRUE if the given ID is a valid HIFLD ID

View source: R/is_hifld_id.R

is_hifld_idR Documentation

Returns TRUE if the given ID is a valid HIFLD ID

Description

Returns TRUE if the given ID is a valid HIFLD, includes a parameter to return FALSE vs. NA if the given ID is NA.

Usage

is_hifld_id(id, hifld_data = NULL, missing_as_na = T)

Arguments

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)

Value

logical, TRUE if the given ID is a valid HIFLD ID

Examples

is_hifld_id(10002598) 
is_hifld_id(c(10002598, 123, NA))

uclalawcovid19behindbars/behindbarstools documentation built on April 22, 2022, 4:08 a.m.