Learn R Programming

ukbabynames (version 0.3.0)

nibabynames: 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

Arguments

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.

Examples

Run this code
# NOT RUN {
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"
    )
# }

Run the code above in your browser using DataLab