Import a Standardization Reference from CSV File

importStandardizationReference(
  filepath,
  name,
  country,
  year,
  source,
  reference = NULL,
  encoding = "UTF-8"
)

Arguments

filepath

Character. Path to CSV file

name

Character. Name for the reference

country

Character. Country or region

year

Integer. Reference year

source

Character. Data source description

reference

Character. URL or reference to access the source data (optional)

encoding

Character. File encoding (default: "UTF-8")

Value

StandardizationReference object

Details

CSV file should have columns: age, gender, population Additional columns are ignored.

Examples

if (FALSE) {
  my_ref <- importStandardizationReference(
    filepath = "data/my_population.csv",
    name = "Regional Census",
    country = "My Country",
    year = 2020,
    source = "Regional Statistics Bureau"
  )
}