Learn R Programming

DAAG (version 1.25.6)

wages1833: Wages of Lancashire Cotton Factory Workers in 1833

Description

The wages1833 data frame gives the wages of Lancashire cotton factory workers in 1833.

Usage

wages1833

Arguments

Format

This data frame contains the following columns:

age

age in years

mnum

number of male workers

mwage

average wage of male workers

fnum

number of female workers

fwage

average wage of female workers

Examples

Run this code
attach(wages1833)
plot(mwage~age,ylim=range(c(mwage,fwage[fwage>0])))
points(fwage[fwage>0]~age[fwage>0],pch=15,col="red")
lines(lowess(age,mwage))
lines(lowess(age[fwage>0],fwage[fwage>0]),col="red")

Run the code above in your browser using DataLab