location_code_to_character: Makes a character from a vector of location codes

View source: R/location_code_to_character.r

location_code_to_characterR Documentation

Makes a character from a vector of location codes

Description

Makes a character from a vector of location codes

Usage

location_code_to_character(
  x,
  label = fhiplot::config$location_code_to_factor_label,
  label_if_not_unique = fhiplot::config$location_code_to_factor_label_if_not_unique,
  reference = fhidata::norway_locations_names(),
  direction = 1
)

Arguments

x

A vector of location codes

label

The label you want the elements in the character to have

label_if_not_unique

The label of elements that are not unique

reference

Where you get your data

direction

-1 is reverse


folkehelseinstituttet/fhiplot documentation built on March 25, 2022, 7:59 a.m.