educabR provides easy access to Brazilian public education data from INEP, FNDE, CAPES, and STN. With simple functions, you can download and process data from 14 datasets covering basic education, higher education, graduate programs, and education funding.
Install from CRAN:
install.packages("educabR")Or install the development version from GitHub:
# install.packages("remotes")
remotes::install_github("SidneyBissoli/educabR")| Dataset | Function | Available Years |
|---|---|---|
| IDEB - Basic Education Development Index | get_ideb(), get_ideb_series() |
2017, 2019, 2021, 2023 |
| ENEM - National High School Exam | get_enem(), get_enem_itens() |
1998-2024 |
| School Census | get_censo_escolar() |
1995-2024 |
| SAEB - Basic Education Assessment System | get_saeb() |
2011-2023 (biennial) |
| ENCCEJA - Youth and Adult Certification Exam | get_encceja() |
2014-2024 |
| ENEM by School (discontinued) | get_enem_escola() |
2005-2015 |
| Dataset | Function | Available Years |
|---|---|---|
| Higher Education Census | get_censo_superior() |
2009-2024 |
| ENADE - National Student Performance Exam | get_enade() |
2004-2024 |
| IDD - Value-Added Indicator | get_idd() |
2014-2023 |
| CPC - Preliminary Course Concept | get_cpc() |
2007-2023 |
| IGC - General Courses Index | get_igc() |
2007-2023 |
| Dataset | Function | Available Years |
|---|---|---|
| CAPES - Graduate programs, students, faculty | get_capes() |
2013-2024 |
| Dataset | Function | Available Years |
|---|---|---|
| FUNDEB - Resource distribution | get_fundeb_distribution() |
2007-2026 |
| FUNDEB - Enrollment counts | get_fundeb_enrollment() |
2007-2026 |
library(educabR)
# Download IDEB 2021 - Early elementary - Schools
ideb <- get_ideb(
year = 2021,
stage = "anos_iniciais",
level = "escola"
)
# Historical series
ideb_series <- get_ideb_series(
years = c(2017, 2019, 2021, 2023),
level = "municipio",
stage = "anos_iniciais"
)# Download a sample for exploration
enem <- get_enem(year = 2023, n_max = 10000)
# Statistical summary
enem_summary(enem)
# Summary by sex
enem_summary(enem, by = "tp_sexo")# Download School Census 2023 - filter by state
censo_sp <- get_censo_escolar(year = 2023, uf = "SP")# Higher Education Census - institutions
ies <- get_censo_superior(2023, type = "ies")
# ENADE microdata
enade <- get_enade(2023, n_max = 10000)
# CAPES graduate programs
programas <- get_capes(2023, type = "programas")# Resource distribution by state
dist <- get_fundeb_distribution(2023, uf = "SP")
# Enrollment counts
mat <- get_fundeb_enrollment(2023, uf = "SP")The package uses local caching to avoid repeated downloads:
# Set a permanent cache directory
set_cache_dir("~/educabR_data")
# List cached files
list_cache()
# Clear cache
clear_cache()MIT