get_tables: Get a list of stables in the data bank

Description Usage Arguments Value Examples

View source: R/get_tables.R

Description

Get a list of stables in the data bank

Usage

1
2
3
4
5
6
get_tables(
  subjects = NULL,
  pastdays = NA_integer_,
  include_inactive = FALSE,
  language = c("en", "da")
)

Arguments

subjects

Provide specific subject id's to get subtopics. E.g. subjects = c("02", "2419"). Can be retrieved with get_subjects()

pastdays

Return only tables which have been updated within this number of days

include_inactive

Whether to return tables that are no longer updated

language

Language for the return object. Default = "en"

Value

A data frame

Examples

1
2
3
4
5
6
7
8
# Get all tables
all_tables <- get_tables()

# Or get tables for specific subjects
some_tables <- get_tables(subjects = c("2", "3413"))

# Get all tables updated within the past 3 days
tables_past3days <- get_tables(pastdays = 3)

danstat documentation built on Jan. 31, 2022, 9:08 a.m.