Learn R Programming

mosaicData (version 0.9.1)

Birthdays: US Births in 1969 - 1988

Description

A day by day record of the number of births in each US State.

Usage

data(Birthdays)

Arguments

format

A data frame with 374221 observations on the following variables.
  • state
{state where child was born} year {year (1969-1988)} month {month (1-12)} day {day of month} date {date as a date object} births {number of births}

Examples

Run this code
data(Birthdays)
if (require(lattice)) {
  xyplot(births ~ date, Birthdays, subset=state=="CA")
  xyplot(births ~ date, Birthdays, subset=state=="CA",
    groups=wday, type='l')
  if (require(mosaic)) {
    xyplot(births ~ date, type='l',
      data = Birthdays %>% group_by(date) %>% summarise(births=sum(births)))
    }
  }

Run the code above in your browser using DataLab