create.IGME.key: Create IGME_Key column

create.IGME.keyR Documentation

Create IGME_Key column

Description

Create column 'IGME_Key' in the format of ISO3Code-Series.Year-Series.Name-Series.Category, e.g."TZA-1988-Census-Indirect", "RWA-2017-Malaria Indicator Survey-Indirect". Extra strings like "Preliminary" or "MM/NN adjusted" are removed

Usage

create.IGME.key(
  dt0,
  add_Indicator = FALSE,
  add_VR_series_name = FALSE,
  add_series_type = TRUE
)

Arguments

dt0

dataset

add_Indicator

default to 'FALSE', if 'TRUE' will add indicator in the end of ‘IGME_Key', keep another 'IGME_Key_s' column which doesn’t have indicator in the end

add_VR_series_name

do we want to include (S)VR Series.Name and Series.Year in the key

add_series_type

do want to add Series.Type in the end of the key

Value

dt0 dataset with added column 'IGME_Key'


unicef-drp/CME.assistant documentation built on Dec. 1, 2024, 6:28 p.m.