Learn R Programming

ukbabynames (version 0.3.0)

ewbabynames: England & Wales baby names

Description

Full baby name data from 1996 to 2020 for England and Wales from the Office of National Statistics.

Usage

ewbabynames

Arguments

Format

A data frame with 294,801 observations on 6 variables.

year

A year (1996-2020).

sex

Sex, M for male and F for female.

name

A name.

n

Count of name within year and sex.

rank

Rank of name within year and sex.

nation

Nation of data source: England & Wales.

Details

The data are released by the Office of National Statistics under the Open Government License v3.0.

See Also

rankings

Examples

Run this code
# NOT RUN {
library(ggplot2)
library(dplyr)

ewbabynames %>%
  filter(name == "Nicholas") %>%
  ggplot(aes(x = year, y = n)) +
  geom_line() +
  labs(
    title = "Popularity of the name `Nicholas` in England & Wales", 
    x = "Year", 
    y = "Number of babies"
    )
# }

Run the code above in your browser using DataLab