Title: | Names Given to Babies in Quebec Between 1980 and 2020 |
---|---|
Description: | A database containing the names of the babies born in Quebec between 1980 and 2020. |
Authors: | Marc-Andre Desautels [aut, cre] |
Maintainer: | Marc-Andre Desautels <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-11-01 02:52:52 UTC |
Source: | https://github.com/desautm/prenoms |
A database containing the first names of babies born in Quebec between 1980 and 2020
prenoms
prenoms
A database containing 769 890 lines and 4 columns:
Year
F for female and M for male
Name
Frequency
library(dplyr) library(ggplot2) library(prenoms) # Prenoms des membres de ma famille family <- prenoms %>% filter( name == "Marc-Andre" & sex == "M" | name == "Laurent" & sex == "M" | name == "Melanie" & sex == "F" | name == "Anna" & sex == "F" ) %>% group_by(name, year, sex) %>% summarise(n = sum(n)) %>% arrange(year) ggplot(data = family, aes(x = year, y = n, color = name))+ geom_line()+ scale_x_continuous( breaks = seq(1980, 2020, by = 5)) library(dplyr) # Les 5 prenoms feminins les plus populaires en 2020 prenoms %>% filter(year == 2020 & sex == "F") %>% select(year, sex, name, n) %>% arrange(desc(n)) %>% head(5)
library(dplyr) library(ggplot2) library(prenoms) # Prenoms des membres de ma famille family <- prenoms %>% filter( name == "Marc-Andre" & sex == "M" | name == "Laurent" & sex == "M" | name == "Melanie" & sex == "F" | name == "Anna" & sex == "F" ) %>% group_by(name, year, sex) %>% summarise(n = sum(n)) %>% arrange(year) ggplot(data = family, aes(x = year, y = n, color = name))+ geom_line()+ scale_x_continuous( breaks = seq(1980, 2020, by = 5)) library(dplyr) # Les 5 prenoms feminins les plus populaires en 2020 prenoms %>% filter(year == 2020 & sex == "F") %>% select(year, sex, name, n) %>% arrange(desc(n)) %>% head(5)