Skip to contents

Call this function without passing any arguments to return the entire content of the names table, otherwise filter the table by any of its variables for a more specific response.

Usage

get_names(..., test_db = FALSE)

Arguments

...

Optional arguments passed to the get_names to filter the names returned.

test_db

Retrieve this data from the test database (TRUE) or not (FALSE). Defaults to FALSE.

Value

A tibble.

Examples

# Search for a facility and return any aliases
get_names(value == "Buckland Community Centre", test_db = TRUE)
#> # A tibble: 2 × 4
#>   id    value                     role      facilities_attributes_id
#>   <chr> <chr>                     <chr>     <chr>                   
#> 1 1     Buckland Hall             alternate FA174                   
#> 2 91    Buckland Community Centre primary   FA174