Package 'ukbabynames'

Title: UK Baby Names Data
Description: Full listing of UK baby names occurring more than three times per year between 1974 and 2020, and rankings of baby name popularity by decade from 1904 to 1994.
Authors: Mine Çetinkaya-Rundel [aut, cre] , Thomas J. Leeper [aut], Nicholas Goguen-Compagnoni [aut], Sara Lemus [aut]
Maintainer: Mine Çetinkaya-Rundel <[email protected]>
License: CC0
Version: 0.3.0
Built: 2024-11-09 03:21:40 UTC
Source: https://github.com/mine-cetinkaya-rundel/ukbabynames

Help Index


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

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.

Source

Office of National Statistics. 2021. Baby Names Statistics Girls. Office of National Statistics. 2021. Baby Names Statistics Boys.

See Also

rankings

Examples

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"
    )

Northern Ireland baby names

Description

Full baby name data from 1997 to 2020 for Northern Ireland from the Northern Ireland Statistics and Research Agency.

Usage

nibabynames

Format

A data frame with 22,596 observations on 6 variables.

year

A year (1997-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: ⁠Northern Ireland⁠.

Source

Northern Ireland Statistics and Research Agency. 2021. Baby Names Statistics Boys and Girls.

Examples

library(ggplot2)
library(dplyr)

nibabynames %>%
  filter(name == "Joseph") %>%
  ggplot(aes(x = year, y = n)) +
  geom_line() +
  labs(
    title = "Popularity of the name `Joseph` in Northern Ireland", 
    x = "Year", y = "Number of babies"
    )

England & Wales top-100 baby names by year

Description

A longitudinal dataset containing the top-100 baby girl and top-100 baby boy names over the period 1904 to 1994.

Usage

rankings

Format

A data frame with 1,900 observations on 4 variables.

name

A name.

year

A year (1904-1994). Rankings are based upon births within that decade.

rank

Rank of the name within decade.

sex

Sex, M for male and F for female.

Details

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

Source

Office of National Statistics. 2016. Top 100 Baby Names Historical Data.

See Also

ewbabynames


Scotland baby names

Description

Full baby name data from 1974 to 2020 for Scotland from the National Records of Scotland.

Usage

scotbabynames

Format

A data frame with 248,420 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: Scotland.

Source

National Records of Scotland. 2021. Baby Names Statistics Boys and Girls.

Examples

library(ggplot2)
library(dplyr)

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

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
     )