Description Usage Arguments Examples
View source: R/agg_student_level.R
This function takes a student level dataframe and aggregates it to the school/district/state level. Provides sums and means for desired columns.
1 | agg_student_level(df, op_list = list(), ...)
|
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) |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.