MyNixOS website logo
Description

Names Given to Babies in Quebec Between 1980 and 2020.

A database containing the names of the babies born in Quebec between 1980 and 2020.

Travis-CI BuildStatus

prenoms

The goal of prenoms is to give the names of babies born in Quebec between 1980 and 2020.

Installation

You can install prenoms from github with:

# install.packages("devtools")
devtools::install_github("desautm/prenoms")

Example 1

Here is the graph of the first names of the four members of my family, between 1980 and 2020.

library(tidyverse)
#> -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
#> v ggplot2 3.3.3     v purrr   0.3.4
#> v tibble  3.1.1     v dplyr   1.0.5
#> v tidyr   1.1.3     v stringr 1.4.0
#> v readr   1.4.0     v forcats 0.5.1
#> -- Conflicts ------------------------------------------ tidyverse_conflicts() --
#> x dplyr::filter() masks stats::filter()
#> x dplyr::lag()    masks stats::lag()
library(prenoms)
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)
#> `summarise()` has grouped output by 'name', 'year'. You can override using the `.groups` argument.

ggplot(data = family, aes(x = year, y = n, color = name))+
  geom_line()+
  scale_x_continuous( breaks = seq(1980, 2020, by = 5))

Example 2

The five most popular female names in 2020.

prenoms %>%
  filter(year == 2020 & sex == "F") %>%
  select(year, sex, name, n) %>%
  arrange(desc(n)) %>%
  head(5)
#> # A tibble: 5 x 4
#>    year sex   name          n
#>   <int> <chr> <chr>     <int>
#> 1  2020 F     Olivia      543
#> 2  2020 F     Alice       491
#> 3  2020 F     Emma        491
#> 4  2020 F     Charlie     488
#> 5  2020 F     Charlotte   449

Example 3

The five most popular male names in 2020.

prenoms %>%
  filter(year == 2020 & sex == "M") %>%
  select(year, sex, name, n) %>%
  arrange(desc(n)) %>%
  head(5)
#> # A tibble: 5 x 4
#>    year sex   name        n
#>   <int> <chr> <chr>   <int>
#> 1  2020 M     Liam      661
#> 2  2020 M     William   644
#> 3  2020 M     Noah      639
#> 4  2020 M     Thomas    594
#> 5  2020 M     Leo       572
Metadata

Version

0.0.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows