View source: R/cbs4_add_unit_column.R
cbs4_add_unit_column | R Documentation |
Add a unit column the unit of each measure.
cbs4_add_unit_column(data, ...)
data |
downloaded with |
... |
not used |
cbs4_add_unit_column()
retrieves the Unit
s for each Measure from
MeasureCodes
in the metadata (cbs4_get_metadata()
) and adds this to the
observations data set.
original observations data.frame()
with extra Unit
column.
cbs4_get_metadata()
Other add metadata columns:
cbs4_add_date_column()
,
cbs4_add_label_columns()
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 }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.