cbs_add_label_columns: For each column with codes add label column to data set

Description Usage Arguments Details Value See Also Examples

View source: R/cbs_add_label_columns.R

Description

Adds cbs labels to the dataset that was retrieved using cbs_get_data().

Usage

1

Arguments

x

data.frame retrieved using cbs_get_data().

columns

character with the names of the columns for which labels will be added

...

not used.

Details

Code columns will be translated into label columns for each of the column that was supplied.

By default all code columns will be accompagnied with a label column. The name of each label column will be <code_column>_label.

Value

the original data.frame x with extra label columns. (see description)

See Also

Other data retrieval: cbs_add_date_column(), cbs_download_data(), cbs_extract_table_id(), cbs_get_data_from_link(), cbs_get_data()

Other meta data: cbs_add_date_column(), cbs_download_meta(), cbs_get_meta()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# get data for main (000000) Consumer Price Index (7196ENG) for March 2000, 
 x <- cbs_get_data( id      = "7196ENG"
                  , Periods = "2000MM03"  # March 2000
                  , CPI     = "000000"    # main price index
                  )
 cbs_add_label_columns(x)

## End(Not run)

cbsodataR documentation built on Jan. 13, 2021, 7:30 p.m.