Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edwindj/cbsodataR
Statistics Netherlands (CBS) OpenData API Client for R
https://github.com/edwindj/cbsodataR
cbs census-data officialstatistics opendata r statistics-netherlands
Last synced: 4 months ago
JSON representation
Statistics Netherlands (CBS) OpenData API Client for R
- Host: GitHub
- URL: https://github.com/edwindj/cbsodataR
- Owner: edwindj
- Created: 2015-04-29T14:24:37.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T08:33:29.000Z (10 months ago)
- Last Synced: 2024-04-25T19:20:24.709Z (10 months ago)
- Topics: cbs, census-data, officialstatistics, opendata, r, statistics-netherlands
- Language: R
- Homepage: https://edwindj.github.io/cbsodataR
- Size: 1.83 MB
- Stars: 30
- Watchers: 9
- Forks: 14
- Open Issues: 11
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- jimsghstars - edwindj/cbsodataR - Statistics Netherlands (CBS) OpenData API Client for R (R)
README
---
output: rmarkdown::github_document
---```{r, include=FALSE}
library(dplyr)
```# Statistics Netherlands (www.cbs.nl) opendata API client for R
[](https://CRAN.R-project.org/package=cbsodataR)

[](https://github.com/edwindj/cbsodataR/actions)
[](https://ci.appveyor.com/project/edwindj/cbsodatar)Retrieve data and spatial maps from the [open data interface](http://www.cbs.nl/nl-NL/menu/cijfers/statline/open-data/default.htm) (dutch) of Statistics Netherlands (cbs.nl) with *R*.
# Installation
From CRAN
```S
install.packages("cbsodataR")
```The latest development version of `cbsodata` can installed using `devtools`.
```R
devtools::install_github("edwindj/cbsodataR")
```# Usage
Retrieve a table of contents with all SN tables.
```{r}
library(cbsodataR)
ds <- cbs_get_datasets("Language" = "en")
head(ds)
```or do a search:
```{r}
res <- cbs_search("apple", language="en")
res[1:3, c(1:4)]
```Use the `Identifier` from tables to retrieve table information
```{r}
cbs_get_meta('71509ENG')
```
Or download data.```{r}
library(dplyr) # just for example's sake
apples <- cbs_get_data("71509ENG")apples |>
select(1:4)
```add label columns:
```{r}
apples |>
cbs_add_label_columns() |>
select(1:4)
```For more information, see `vignette("cbsodataR")`
Python user? Use [cbsodata](https://github.com/J535D165/cbsodata).