Returns harmonized series of average years of schooling at the national, macro-region, or state level, optionally broken down by color/race or sex. The bundled data comes from Walter & Kang (2023), a FGV-IBRE working paper that reconstructs the series from 1925 to 2015.
Arguments
- year
Integer vector or two-element
c(min, max)range.NULLfor all years.- geo_level
One of
"BR"(national, default),"region"(macro-region), or"UF"(state). Region and UF series start in 1950.- geo
Character vector of geographic codes. For
geo_level = "UF", 2-letter IBGE UF abbreviations (e.g."SP","BA"). Forgeo_level = "region", one or more of"N","NE","CO","SE","S".NULL(default) returns all geographies at that level.- dimension
Inequality breakdown. One of:
"none"(default) — national totals only (no race or sex split);"race"— breakdown by IBGE color/race (white,black,brown,asian,indigenous), totals across sex;"sex"— breakdown by sex (male,female), totals across race. Race and sub-national breakdowns are only available atgeo_level = "BR".
- source
Character vector of source keys.
NULLreturns all available sources (currently only"walter_kang_2023").- wide
Logical. If
TRUE, pivots the result to wide form. For this indicator the effect is minimal (only one indicator column), but the parameter is provided for API consistency withget_enrollment(). DefaultFALSE.- lang
One of
"en"(default) or"pt". When"pt", factor levels are translated viainst/dict/i18n.yaml.
