Learn R Programming

openintro (version 2.4.0)

husbands_wives: Great Britain: husband and wife pairs

Description

The Great Britain Office of Population Census and Surveys once collected data on a random sample of 170 married couples in Britain, recording the age (in years) and heights of the husbands and wives.

Usage

husbands_wives

Arguments

Format

A data frame with 199 observations on the following 8 variables.

age_wife

Age of wife.

ht_husband

Height of husband (mm).

ht_wife

Height of wife (mm).

age_husb_at_marriage

Age of husband at the time they married.

age_wife_at_marriage

Age of wife at the time they married.

years_married

Number of years married.

Examples

Run this code

library(ggplot2)

ggplot(husbands_wives, aes(x = ht_husband, y = ht_wife)) +
  geom_point()

Run the code above in your browser using DataLab