Skip to contents

This function provides information about the variables available in the education finance dataset, including their names, types, and brief descriptions.

Usage

list_variables(dataset_type = "skinny", category = "all")

Arguments

dataset_type

A string specifying whether to list variables for "skinny" (default) or "full" dataset.

category

Optional. Filter variables by category: "id", "time", "geographic", "demographic", "revenue", "expenditure", "economic", "governance", or "all" (default).

Value

A tibble with variable information

Examples

# list all available variables in skinny dataset
vars <- list_variables()
head(vars)
#> # A tibble: 6 × 6
#>   name         type      category    source           first_yr_avail description
#>   <chr>        <chr>     <chr>       <chr>            <chr>          <chr>      
#> 1 ncesid       character id          NCES F-33 Survey 2012           NCES distr…
#> 2 year         integer   time        NCES F-33 Survey 2012           School yea…
#> 3 state        character geographic  NCES F-33 Survey 2012           State abbr…
#> 4 dist_name    character id          NCES F-33 Survey 2012           District n…
#> 5 enroll       numeric   demographic NCES F-33 Survey 2012           Total dist…
#> 6 rev_total_pp numeric   revenue     NCES F-33 Survey 2012           Total adju…

# list all variables in full dataset
full_vars <- list_variables(dataset_type = "full")
nrow(full_vars)
#> [1] 89

# list only expenditure variables in full dataset
exp_vars <- list_variables(dataset_type = "full", category = "expenditure")
head(exp_vars)
#> # A tibble: 6 × 6
#>   name            type    category    source          first_yr_avail description
#>   <chr>           <chr>   <chr>       <chr>           <chr>          <chr>      
#> 1 exp_cur_pp      numeric expenditure NCES F-33 Surv… 2016           Current ex…
#> 2 rev_exp_pp_diff numeric expenditure NCES F-33 Surv… 2016           Revenue mi…
#> 3 exp_cur_st_loc  numeric expenditure NCES F-33 Surv… 2016           Current ex…
#> 4 exp_cur_fed     numeric expenditure NCES F-33 Surv… 2016           Current ex…
#> 5 exp_cur_resa    numeric expenditure NCES F-33 Surv… 2018           Current ex…
#> 6 exp_cur_total   numeric expenditure NCES F-33 Surv… 2016           Total curr…