File: maxCat.Rd

package info (click to toggle)
r-cran-vim 6.2.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,556 kB
  • sloc: cpp: 141; sh: 12; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/maxCat.R
\name{maxCat}
\alias{maxCat}
\title{Aggregation function for a factor variable}
\usage{
maxCat(x, weights = NULL)
}
\arguments{
\item{x}{factor vector}

\item{weights}{numeric vector providing weights for the observations in x}
}
\description{
The function maxCat chooses the level
with the most occurrences and random if the maximum is not unique.
}