Learn R Programming

edbuildr (version 0.3.0)

sd_neighbor: A function to create a dataframe of a school district and all its neighbors

Description

This function allows you to create a table to view any school district and its neighbors with selected data from EdBuild's master datafile.

Usage

sd_neighbor(data_year = "2019", school_district = NULL, table_vars =
  c('Name', 'Enrollment', 'Poverty Rate', 'Percent Nonwhite', 'Local Revenue PP',
   'State Revenue PP', 'Type'))

Arguments

data_year

Four digit year of master data to pull in. Options include 2013- 2019. Defaults to 2019.

school_district

Seven digit NCESID of the school district. Default is NULL. To find the NCESID for any school district, use masterpull to search for your district.

table_vars

Variable or list of variables to include in the table. Use tables_vars = <U+201C>options<U+201D> to print a list of the variables. Defaults to: Name; Enrollment; Poverty Rate; Percent Nonwhite; Local Revenue, per Pupil; State Revenue, per Pupil; Type

Value

A dataframe where each observation is a school district.

See Also

sd_neighbor_xlsx, sd_table_xlsx, master_codebook, masterpull neigh_diff

Examples

Run this code
# NOT RUN {
table <- sd_neighbor(
         data_year = "2019",
         school_district = "0622710",
         table_vars = c("Name",
                       "Percent Nonwhite",
                       "Median Household Income",
                        "State Revenue PP")
       )
# }

Run the code above in your browser using DataLab