Download data from CBS Open data Statline.

cbs_topics()

cbs_search(topic, max_print = 25)

cbs_download(identifier, clean_cols = TRUE)

cbs_moreinfo(identifier)

Arguments

topic

topics to search for

max_print

maximum number of subjects to print

identifier

tracking number (1 to max_print) in cbs_search()

clean_cols

Clean column names.

Details

cbs_topics() retrieves all topics.

cbs_search() searches for a specific subject.

cbs_download() downloads tables. Input has to be a CBS Identifier (printed in red in cbs_search()), or a tracking number of cbs_search(), or the result of cbs_search().

cbs_moreinfo() gives a detailed explanation for the table. Input can also be a dataset downloaded with cbs_download().

Examples

if (FALSE) {
cbs_search("Inwoners")

x <- cbs_download(2) # 2nd hit of cbs_search()
str(x)

cbs_moreinfo(x)
cbs_moreinfo(2)
}