uth_make_outcome_count: Make a table of column aggregation counts

View source: R/uth_make_outcome_count.R

uth_make_outcome_countR Documentation

Make a table of column aggregation counts

Description

Use this function to aggregate counts in a data frame. A typical use case would involve a data frame with student ids and a collection of attributes. The utHelpR package includes a data frame called fake_enrollment with this structure. The following code illustrates how to use uth_make_outcome_count

test <- fake_enrollment %>% select(student_id, gender_code) %>% filter(!is.na(gender_code))

uth_make_outcome_count(test, gender_code)

Usage

uth_make_outcome_count(.data, ...)

Arguments

.data

A data frame with columns you would like to aggregate on.

...

The columns you would like to aggregate over. Don't forget the column you are counting, i.e. student number.

Value

A table with aggregated counts of column attributes


dsu-effectiveness/utHelpR documentation built on April 26, 2024, 12:24 p.m.