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

Description Usage Arguments Value See Also Examples

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

1
2
3
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 = “options” 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

1
2
3
4
5
6
7
8
table <- sd_neighbor(
         data_year = "2019",
         school_district = "0622710",
         table_vars = c("Name",
                       "Percent Nonwhite",
                       "Median Household Income",
                        "State Revenue PP")
       )

edbuildr documentation built on June 2, 2021, 5:07 p.m.