anti_Mode_numeric: Compute the NOT Mode of numeric data

View source: R/Mode_Functions.R

anti_Mode_numericR Documentation

Compute the NOT Mode of numeric data

Description

This function returns the value that is NOT the mode (anti-mode) of a numeric vector(x). Note this is only valid for vectors with two possible values

Usage

anti_Mode_numeric(x)

Arguments

x

A vector consisting of two values for which the Mode(x) is computed. x must be a vector of numeric values, missing values are dropped from computations; for character data use Mode.alpha().

Value

a numeric value, the value that is not the mode of x

Examples

x <- c(5,4,5,4,5,5,4,4,5,5,4,5,4,4,5,4,5,5,5,4,4,5,5,4,5)
anti_Mode_numeric(x)


JenC36/JACtools documentation built on Oct. 20, 2024, 8:05 a.m.