Description Usage Arguments Details Value Examples
View source: R/income_sti_correlation.R
This function calculates the correlation between average income and seven day incidence in all administrative regions of germany on a dayly basis.
1 | income_sti_correlation(path, sheetnr)
|
path |
Specifies the path to a giben excel sheet. If left empty the function defaults to the data provided by the pachage. |
sheetnr |
Specifies the sheet of the excel table, where the relevant data can be found. It only has to be specified, if custom data is used. |
The funciton is based on data by Destatis aquired via https://www.statistikportal.de/de/vgrdl/ergebnisse-kreisebene/einkommen-kreise on the 12.8.2021. The user can load his own income data into the function, as described in the parameters.
The function returns a tibble carring a "date" column, and a "cor" column. The "cor" column describes the correlation for a given date.
1 2 3 4 5 | income_sti_correlation()
income_sti_correlation("expl/path.xlsx", 11)
## Not run: income_sti_correlation(sheetnr=3)
## Not run: income_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.