Calculates summary statistics for ENEM scores, optionally grouped by demographic variables.
Arguments
- data
A tibble with ENEM data (from
get_enem()).- by
Optional grouping variable(s) as character vector.
Examples
# \donttest{
enem <- get_enem(2023, n_max = 10000)
#> ℹ downloading ENEM 2023...
#> ! ENEM files are large (1-3 GB). this may take a while...
#> ℹ downloading from INEP...
#> Error in value[[3L]](cond): download failed
#> ✖ url: <https://download.inep.gov.br/microdados/microdados_enem_2023.zip>
#> ℹ error: Failed to perform HTTP request. Caused by error in
#> `curl::curl_fetch_memory()`: ! Timeout was reached [download.inep.gov.br]:
#> Operation timed out after 600000 milliseconds with 453300694 out of 520568121
#> bytes received
# overall summary
enem_summary(enem)
#> Error: object 'enem' not found
# summary by sex
enem_summary(enem, by = "tp_sexo")
#> Error: object 'enem' not found
# }