income_sti_correlation: Correlation between income and STI

Description Usage Arguments Details Value Examples

View source: R/income_sti_correlation.R

Description

This function calculates the correlation between average income and seven day incidence in all administrative regions of germany on a dayly basis.

Usage

1
income_sti_correlation(path, sheetnr)

Arguments

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.

Details

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.

Value

The function returns a tibble carring a "date" column, and a "cor" column. The "cor" column describes the correlation for a given date.

Examples

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")

slausmeister/revolution documentation built on Dec. 23, 2021, 3:24 a.m.