ukbabynames {ukbabynames}R Documentation

UK baby names

Description

Full baby name data 1974-2020 for the United Kingdom from all nations. Contains data from England and Wales (ewbabynames), Scotland (scotbabynames), and Northern Ireland (nibabynames).

Usage

ukbabynames

Format

A data frame with 565,817 observations on 6 variables.

year

A year (1974-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.

Source

Office of National Statistics. 2021. Baby Names Statistics Girls. Office of National Statistics. 2021. Baby Names Statistics Boys. Northern Ireland Statistics and Research Agency. 2021. Baby Names Statistics Boys and Girls. National Records of Scotland. 2021. Baby Names Statistics Boys and Girls.

Examples

library(ggplot2)
library(dplyr)

ukbabynames %>%
  filter(name == "Jack") %>%
  ggplot(aes(x = year, y = n, color = nation)) +
  geom_line() +
  labs(
     title = "Popularity of the name `Jack` in the UK",
     subtitle = "by Nation", 
     x = "Year", y = "Number of babies",  color = NULL
     )

[Package ukbabynames version 0.3.0 Index]