GetMode: Mode, orderly

Description Usage Arguments Value Examples

View source: R/GetMode.R

Description

The most frequent value of a random variable. You can see the number or value of mode.

Usage

1

Arguments

x

object to be ordered.

order

Order of modes.

type

Type of returned value. Count, Value.

Value

The most frequent value or number of a random variable.

Examples

1
2
3
4
# The number of second mode
GetMode(iris$Species, order=2, type='count')
# The value of first mode
GetMode(iris$Species, order=1, type='value')

gerolt/test3 documentation built on April 19, 2018, 12:21 a.m.