Count value by variables

count_by(data, grp, var, var_label = var, id = "USUBJID")

Arguments

data

A data frame

grp

Group variable in data.

var

Analysis variable in data.

var_label

A string of analysis variable label.

id

Subject id variable in data.