Skip to contents

This function sets global parameters that control how location codes are formatted throughout the package.

Usage

set_global(
  location_code_to_factor_label = "location_name",
  location_code_to_factor_label_if_not_unique = "location_name_description_nb"
)

Arguments

location_code_to_factor_label

Column name to use for location labels (default: "location_name")

location_code_to_factor_label_if_not_unique

Column name to use when location names are not unique (default: "location_name_description_nb")

Value

NULL (invisibly) - function called for side effects

See also

Other csstyle_utilities: colors, display_all_palettes(), every_nth()

Examples

# Set global location formatting preferences
set_global(
  location_code_to_factor_label = "custom_name",
  location_code_to_factor_label_if_not_unique = "custom_description"
)

# Reset to defaults
set_global()