Learn R Programming

openintro (version 2.4.0)

age_at_mar: Age at first marriage of 5,534 US women.

Description

Age at first marriage of 5,534 US women who responded to the National Survey of Family Growth (NSFG) conducted by the CDC in the 2006 and 2010 cycle.

Usage

age_at_mar

Arguments

Format

A data frame with 5,534 observations and 1 variable.

age

Age a first marriage.

Examples

Run this code

library(ggplot2)

ggplot(age_at_mar, mapping = aes(x = age)) +
  geom_histogram(binwidth = 3) +
  labs(
    x = "Age", y = "Count", title = "Age at first marriage, US Women",
    subtitle = "Source: National Survey of Family Growth Survey, 2006 - 2010"
  )

Run the code above in your browser using DataLab