| Title: | Names Given to Babies in Quebec Between 1980 and 2020 | 
| Version: | 0.0.1 | 
| Language: | en-US | 
| Description: | A database containing the names of the babies born in Quebec between 1980 and 2020. | 
| Depends: | R (≥ 2.10) | 
| Imports: | tibble | 
| Suggests: | dplyr, ggplot2 | 
| License: | MIT + file LICENSE | 
| URL: | <https://github.com/desautm/prenoms> | 
| BugReports: | https://github.com/desautm/prenoms/issues | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| RoxygenNote: | 7.1.1 | 
| NeedsCompilation: | no | 
| Packaged: | 2021-04-26 12:52:10 UTC; mdesautels | 
| Author: | Marc-Andre Desautels [aut, cre] | 
| Maintainer: | Marc-Andre Desautels <marc-andre.desautels@cstjean.qc.ca> | 
| Repository: | CRAN | 
| Date/Publication: | 2021-04-27 07:30:05 UTC | 
Names of babies in Quebec Between 1980 and 2020
Description
A database containing the first names of babies born in Quebec between 1980 and 2020
Usage
prenoms
Format
A database containing 769 890 lines and 4 columns:
- year
- Year 
- sex
- F for female and M for male 
- name
- Name 
- n
- Frequency 
Source
Examples
  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)