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
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.