Graphs the real wage evolution of a Swedish worker using monthly Consumer Price Index data from Statistics Sweden from 2006 and onwards.
The following steps describe how to install realwage
from GitHub.
install.packages('devtools')
library(devtools)
install_github('JonasEngstrom/realwage', build_vignettes = TRUE)
library(realwage)
install.packages('tibble')
library(tibble)
The tibble needs to have year, month, and salary columns.
wage_table <- tibble(year = c(2020, 2021, 2022),
month = c(3, 3, 3),
salary = c(30000, 30250, 31000))
calculate_and_plot_adjusted_salary(wage_table)
Run the following command, to learn more about how realwage
can be used.
browseVignettes('realwage')