maxCat: Aggregation function for a factor variable

View source: R/maxCat.R

maxCatR Documentation

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


statistikat/VIM documentation built on April 5, 2024, 3:33 a.m.