agg_student_level: Aggregate Student Level to School/District/State

Description Usage Arguments Examples

View source: R/agg_student_level.R

Description

This function takes a student level dataframe and aggregates it to the school/district/state level. Provides sums and means for desired columns.

Usage

1
agg_student_level(df, op_list = list(), ...)

Arguments

df

Dataframe. Used first to be friendly to the %>% operator.

op_list

A named list where the name is the operation and the value is a character vector of column names to apply the operation to

...

The columns to aggregate at (e.g. system, system_name, school, school_name)

Examples

1
2
3
4
5
## Not run: 
agg_student_level(student_level_df,op_list = list(sum = c('enrolled', 'tested', 'valid tests')),
system, school, subgroup)

## End(Not run)

amarsee/andrewacct documentation built on Feb. 19, 2020, 4:28 a.m.