Learn R Programming

itsadug (version 1.0.1)

countValues: Utility function.

Description

Function uses table with factors to count the occurrances of each value in the predictor.

Usage

countValues(x, values, incl_na = FALSE)

Arguments

x
A vector to be counted.
values
A vector with all possible group names.
incl_na
Logical: whether or not to return a count of missing values.

Value

  • A table with count information.

Note

Will be moved to other package.

See Also

table