krangl / krangl / count

count

fun DataFrame.count(vararg selects: String, name: String = "n"): DataFrame

Counts observations by group.

If no grouping attributes are provided the method will respect the grouping of the receiver, or in cases of an ungrouped receiver will simply count the rows in the data.frame

Parameters

selects - The variables to to be used for cross-tabulation.

name - The name of the count column resulting table.