Learn R Programming

cbsodataR (version 0.3)

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

Description

Adds cbs labels to the dataset that was retrieved using cbs_get_data. 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.

Usage

cbs_add_label_columns(x, columns = colnames(x), ...)

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.

Examples

Run this code
# NOT RUN {
# get data for main (000000) Consumer Price Index (7196ENG) for March 2000, 
 x <- cbs_get_data(id="7196ENG", Periods="2000MM03", CPI="000000")
 cbs_add_label_columns(x)
# }

Run the code above in your browser using DataLab