Skip to content

Instantly share code, notes, and snippets.

@ajdamico
ajdamico / iterative population pyramid.R
Created June 13, 2024 15:04
views of sustainable population mountain
library(ggplot2)
library(dplyr)
# start with current year
starting_year <- 2024
# assume this many children born during the lifetime of each woman
children_per_woman <- 2.1