knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.width = 7, fig.height = 4.2, dpi = 120 ) library(tatooheene) library(dplyr) library(tidyr) library(lifecycle)
Where the reference prices live: tatooheene::df_ref_prices.
How to use nl_ref_prices() to:
filter by domain, category, unit, short_unit
select one or multiple years (e.g., 2022 or c (2022, 2023) ),
choose currency ("EUR" or "INT\$"; PPP adjusted), and
return either a table or a single numeric value (with a printed label).
The function is
r lifecycle::badge("experimental"). Column names reflect the CBS table embedded indf_ref_prices.
df_ref_prices %>% head()
nl_ref_prices()
nl_ref_prices(year = 2022, unit = "Emergency care")
nl_ref_prices(year = 2022:2024, category = "Nursing")
# nl_ref_prices( # year = 2024, # category = "Nursing", # unit = c("Nursing day excluding personnel costs, hospital", # "Nursing day including personnel costs, hospital") # )
"Year out of range …" You asked for a year outside the available year columns in df_ref_prices. Use a valid year or pass "all" for all years.
"For output = "value_label", provide exactly one year and a single (category, unit) combination." Single value mode needs exactly one year and one (category, unit) (and, if used, a single domain) so that exactly one row remains.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.