Downloads data table in Estonian National Institute for Health Development (Tervise Arengu Instituut, TAI) database.

pull_table(tabname, tablist = NULL, lang = c("et", "en"))

Arguments

tabname

a table Name from list_variables(), a character string.

tablist

list of available database tables, a data_frame generated by get_all_tables() function. Defaults to NULL, in which case internal table is used.

lang

Language, a character string. "et" -- Estonian, "en" -- English.

Examples

# Download data for table 'RK01' rk01 <- pull_table("RK01", lang = "en") rk01
#> # A tibble: 3,876 x 4 #> Year County `Age group` value #> <chr> <chr> <chr> <dbl> #> 1 2000 Estonia All age groups 15331 #> 2 2000 Estonia 10-14 20.0 #> 3 2000 Estonia 15-17 689 #> 4 2000 Estonia 18-19 1168 #> 5 2000 Estonia 20-24 3701 #> 6 2000 Estonia 25-29 3545 #> 7 2000 Estonia 30-34 2940 #> 8 2000 Estonia 35-39 2158 #> 9 2000 Estonia 40-44 996 #> 10 2000 Estonia 45-49 110 #> # ... with 3,866 more rows