Skip to contents

VERY SLOW search within PRIMARY_NAME of facilities for matching text

Usage

frs_from_sitename(sitenames, ignore.case = TRUE, fixed = FALSE)

Arguments

sitenames

one or more strings in a vector, which can be regular expressions or query for exact match using fixed=TRUE

ignore.case

logical, search is not case sensitive by default (unlike grepl() default)

fixed

see grepl(), if set to TRUE it looks for only exact matches

Value

relevant rows of the data.table called frs, which has column names that are "lat" "lon" "REGISTRY_ID" "PRIMARY_NAME" "NAICS" "PGM_SYS_ACRNMS"

Examples

if (FALSE) { # \dontrun{
 # very slow
 x=frs_from_sitename
 nrow(x)
 head(x)
} # }