is_fac_name: Returns TRUE if a facility name exists in the facility...

View source: R/is_fac_name.R

is_fac_nameR Documentation

Returns TRUE if a facility name exists in the facility crosswalks

Description

Returns TRUE if a facility name exists in the facility crosswalks, FALSE otherwise. Function is case-insensitive, and strips special characters, new line indicators, and excess white space (per behindbarstools::clean_fac_col_txt).

Usage

is_fac_name(
  fac_name,
  state,
  fac_info = NULL,
  fac_spellings = NULL,
  include_alt = T
)

Arguments

fac_name

character string of the facility to plot

state

character string of the facility's state

fac_info

data frame with facility_info sheet

fac_spellings

data frame with facility_spellings sheet

include_alt

logical, whether to include alternative spellings

Value

logical, TRUE if fac_name is a valid name and FALSE otherwise

Examples

is_fac_name("Los Angeles Jails", "California")


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