if (interactive()){
# works on observations
obs <- cbs4_get_observations("84287NED", Perioden="2019MM12")
obs # without label columns
obs_labeled <- cbs4_add_label_columns(obs)
obs_labeled
# works on data
d <- cbs4_get_data("84287NED", Perioden="2019MM12")
d # cbs4_get_data automagically labels measure columns.
d_labeled <- cbs4_add_label_columns(d)
d_labeled
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.