pullDemog: Pull down demographic data

Description Usage Arguments Details Value

View source: R/dataExtract.R

Description

Pull down demographic data

Usage

1
pullDemog(cohortYear, grade, conn)

Arguments

cohortYear

a character string of the format YYYY-YYYY

grade

a character representing the grade level in the format 10 or 0X

conn

a connection object with the data connections necessary to access the database

Details

This function is meant to pull a single year and single grade of demographic data for students and to do the necessary data cleaning and reshaping to create data with a single row per student per year per grade and with columns representing demographic data for model building. This function is called as part of a larger function which assembles all data on a cohort for processing in a model search. Specifically in this case it includes race, school, student disability status, student economic disadvantage status, student ELL status, student retention indicator, student attendance, student gender, and school district

Value

Returns a data.frame with student demographic data and merge keys


jknowles/ModelEWS documentation built on May 19, 2019, 11:42 a.m.