prenoms | R Documentation |
French baby names between 1900 and 2021, detailed by department
prenoms
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
Data has been modified to take into account changes in France departments, see https://www.insee.fr/fr/statistiques/2540004#documentation for details.
INSEE https://www.insee.fr/fr/statistiques/2540004
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.