Learn R Programming

epidata (version 0.4.0)

get_median_and_mean_wages: Retreive the hourly wage in the middle of the wage distribution

Description

The median wage is the hourly wage in the middle of the wage distribution; 50 percent of wage earners earn less and 50 percent earn more. The average wage is the arithmetic mean of hourly wages; or, the sum of all workers' hourly wages divided by the number of workers.

Usage

get_median_and_mean_wages(by = NULL)

Arguments

by

NULL or character string with any combination of g (Gender), r (Race), e (Education), d (Percentile), l (Entry-level) i.e. if you want to wage data by gender and race, you would set this parameter to "gr".

Value

tbl_df with data filtered by the selected criteria.

References

Economic Policy Institute Data Library

Examples

Run this code
# NOT RUN {
get_median_and_mean_wages()

get_median_and_mean_wages("r")

get_median_and_mean_wages("gr")
# }

Run the code above in your browser using DataLab