Description Usage Arguments Details Value Examples
View source: R/income_sti_correlation.R
This function calculates the correlation between the STI of a county and the average worker compensation (i.e., wages paid out) of the county for each day. It then outputs the correlation coefficient as a time series.
1 | payments_sti_correlation(path, sheetnr)
|
path |
Specifies where the relevant table is located. If path is not specified, the table available in the package will be used. |
sheetnr |
Specifies on which page of the Excel table the relevant data can be found. The parameter must only be specified if an own dataset is used. |
The function is based on data from Destatis, sourced from https://www.statistikportal.de/de/vgrdl/ergebnisse-kreisebene/einkommen-kreise on 12.8.2021. You can also load your own table. For this the corresponding path, as well as the sheetnumber of the relevant dataset.
Gives the daily correlation coefficient between wage payments and the and the STI in all counties as a time series in the form of a tibble The "date" column describes the date, and the "cor" column describes the coefficient.
1 2 3 4 5 | payments_sti_correlation()
payments_sti_correlation("expl/path.xlsx", 11)
## Not run: payments_sti_correlation(sheetnr=3)
## Not run: payments_sti_correlation(path="custom/path/without/sheetnumber.xlsx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.