check_region_classification: Check region classifications

View source: R/check_region_classifications.R

check_region_classificationR Documentation

Check region classifications

Description

Functions for checking region classifications are divided into functions that test whether input is a certain element of classification returning logicals functions that check if input vector is ok. The checking functions return TRUE if everything is ok and FALSE if not. In case of FALSE, they also return a message containing information where the problem is.

Usage

check_region_classification(
  region_names,
  region_codes,
  year = NULL,
  lang = "fi",
  offline = TRUE
)

Arguments

region_names

a vector of standard region names

region_codes

a vector of standard region codes

year

double or character, year of classification

lang

"fi", "sv" or "en". Language of the input name. Defaults to "fi".

offline

logical, whether works offline with package data. Defaults to TRUE.

Details

Testing of the region information of data should proceed by first checking if the region codes and names are ok and then whether they correctly correspond to each other.

Value

logical


pttry/statficlassifications documentation built on Jan. 17, 2024, 4:36 p.m.