dot-Mode: Compute The Mode(s) Of A Discrete Distribution

.ModeR Documentation

Compute The Mode(s) Of A Discrete Distribution

Description

This is an internal utility function to compute the mode(s) of a discrete distribution.

Usage

.Mode(x, na.rm = TRUE)

Arguments

x

A vector or matrix of discrete values.

na.rm

A logical value indicating whether NA values should be stripped before the computation proceeds (default: TRUE).

Value

A vector of values corresponding to the mode(s) of x.

Author(s)

Simon Garnier, garnier@njit.edu


swarm-lab/trackdf documentation built on March 27, 2023, 2:13 a.m.