knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of statbank is to ...
You can install the released version of statbank from CRAN with:
# install.packages("statbank")
And the development version from GitHub with:
# install.packages("remotes") remotes::install_github("akselthomsen/statbank")
This is a basic example which shows you how to solve a common problem:
library(statbank) ## basic example code x <- tbl_dst(table_id = "FOLK1B", lang = "en") class(x)
x
x %>% head() x %>% tail()
x %>% sample_n(8) %>% show_query() %>% print() %>% use_bulk_download()
tbl_dst(table_id = "FOLK1B", lang = "en") %>% select(TID) %>% filter(stringr::str_detect(TID, "K4")) %>% collect()
x %>% use_long_names()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.