prenoms: French Baby Names 1900-2021

prenomsR Documentation

French Baby Names 1900-2021

Description

French baby names between 1900 and 2021, detailed by department

Usage

prenoms

Format

data frame with columns

  • year: integer, between 1900 and 2021

  • sex: character, either M or F

  • name: character, first name

  • n: integer, birth count within the department

  • dpt: character, department

  • prop: numeric, proportion in that year in that department

Details

Data has been modified to take into account changes in France departments, see https://www.insee.fr/fr/statistiques/2540004#documentation for details.

Source

INSEE https://www.insee.fr/fr/statistiques/2540004

Examples

## Not run: 
  library("dplyr")
  library("ggplot2")

  # first names of ThinkR's staff aggregated at country level
  thinkrs <- prenoms %>%
    filter(
        name == "Diane"   & sex == "F" |
        name == "Sébastien"  & sex == "M" |
        name == "Colin"  & sex == "M" |
        name == "Cervan"  & sex == "M" |
        name == "Vincent" & sex == "M"
    ) %>%
    group_by(name, year, sex) %>%
    summarise( n = sum(n) ) %>%
    arrange( year )

  # quick ggplot representation
  ggplot( thinkrs, aes(x = year, y = n, color = name) ) +
    geom_line() +
    scale_x_continuous( breaks = seq(1900, 2021, by = 10) )

## End(Not run)


ThinkR-open/prenoms documentation built on Sept. 14, 2023, 6:03 a.m.