Skip to content

Given salary data for a person in Sweden, realwage calculates and graphs their real wage evolution over time.

License

Notifications You must be signed in to change notification settings

JonasEngstrom/realwage

Repository files navigation

Realwage

Graphs the real wage evolution of a Swedish worker using monthly Consumer Price Index data from Statistics Sweden from 2006 and onwards.

Installing the realwage Package

The following steps describe how to install realwage from GitHub.

1. Install devtools

install.packages('devtools')

2. Load devtools

library(devtools)

3. Install realwage

install_github('JonasEngstrom/realwage', build_vignettes = TRUE)

4. Load realwage

library(realwage)

Get Started Using the realwage Package

1. Install and Load the tibble Package

install.packages('tibble')
library(tibble)

2. Make a tibble Object of Past Salaries

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

3. Plot Inflation Adjusted Salary

calculate_and_plot_adjusted_salary(wage_table)

Learn More

Run the following command, to learn more about how realwage can be used.

browseVignettes('realwage')

About

Given salary data for a person in Sweden, realwage calculates and graphs their real wage evolution over time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages