knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

statbank

Travis build status Codecov test coverage R build status CodeFactor

The goal of statbank is to ...

Installation

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")

Example

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()


akselthomsen/statbank documentation built on Jan. 20, 2021, 11:33 p.m.