scotbabynames {ukbabynames} | R Documentation |
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 andF
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"
)
[Package ukbabynames version 0.3.0 Index]