Skip to contents

Add a unit column the unit of each measure.

Usage

cbs4_add_unit_column(data, ...)

Arguments

data

downloaded with cbs4_get_observations()

...

not used

Value

original observations data.frame() with extra Unit column.

Details

cbs4_add_unit_column() retrieves the Units for each Measure from MeasureCodes in the metadata (cbs4_get_metadata()) and adds this to the observations data set.

See also

Examples

if (interactive()){
  # works only on observations
  obs <- cbs4_get_observations("84287NED", Perioden="2019MM12")
  obs # without Unit column

  obs_unit <- cbs4_add_unit_column(obs)
  obs_unit # with unit column
}