Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

maxCat

Aggregation function for a factor variable


Description

The function maxCat chooses the level with the most occurrences and random if the maximum is not unique.

Usage

maxCat(x, weights = NULL)

Arguments

x

factor vector

weights

numeric vector providing weights for the observations in x


VIM

Visualization and Imputation of Missing Values

v6.1.0
GPL (>= 2)
Authors
Matthias Templ [aut, cre], Alexander Kowarik [aut] (<https://orcid.org/0000-0001-8598-4130>), Andreas Alfons [aut], Gregor de Cillia [aut], Bernd Prantner [ctb], Wolfgang Rannetbauer [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.