wrapper around get_salary()
for multiple years
Usage
get_salaries(
years = 2008:2021,
union_rate = "tv-l",
area = "west",
resolution = "monthly",
dbg = TRUE
)
Arguments
- years
years of tariffs to try to download (default: 2008:2021)
- union_rate
default: "tv-l"
- area
default: "west"
- resolution
"monthly": Monatswerte, "annual": Jahreswerte, "quarterly": Quartalswerte, "weekly": Wochenwerte, "weekdays": werktagswerte, "daily": Tageswerte. Default: "monthly"
- dbg
print debug messages (default: TRUE)
Examples
salaries <- get_salaries(years = 2008:2021)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2008 ... ok. (0.95s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2009 ... ok. (0.82s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2010 ... ok. (0.67s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2011 ... ok. (0.72s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2012 ... ok. (0.69s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2013 ... ok. (0.67s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2014 ... ok. (0.65s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2015 ... ok. (0.65s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2016 ... ok. (0.65s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2017 ... ok. (0.71s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2018 ... ok. (0.72s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2019 ... ok. (0.72s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2020 ... ok. (0.69s)
#> Getting 'monthly' salary table for 'tv-l' ('west') for year 2021 ... ok. (0.75s)
salaries
#> # A tibble: 1,542 × 10
#> union_r…¹ area title year date_from date_to pay_g…² step salar…³ unit
#> <chr> <chr> <chr> <int> <date> <date> <chr> <int> <dbl> <chr>
#> 1 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 1 1 NA €
#> 2 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 1 2 1325 €
#> 3 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 1 3 1350 €
#> 4 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 1 4 1380 €
#> 5 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 1 5 1410 €
#> 6 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 1 6 1485 €
#> 7 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 2 1 1495 €
#> 8 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 2 2 1660 €
#> 9 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 2 3 1710 €
#> 10 tv-l west Entg… 2008 2008-01-01 2009-02-28 E 2 4 1760 €
#> # … with 1,532 more rows, and abbreviated variable names ¹union_rate,
#> # ²pay_group, ³salary_monthly