Learn R Programming

matchMulti (version 1.1.12.1)

tally_schools: Tally schools and students in a given dataset

Description

Returns a count of schools, without printing anything.

Usage

tally_schools(data, school.id, treatment)

Value

List of two things: school and student counts (invisible).

Arguments

data

Dataset (student level)

school.id

String name of ID column in data (the grouping variable)

treatment

String name of the treatment variable.

Author

Luke Miratrix

See Also

describe_data_counts