mostFreq: Extract the most typical value from a vector

Description Usage Arguments Value Examples

View source: R/objects.R

Description

Given a factor, character string vector, numeric vector or logical vector extract a single "typical" value. Either the median or the most frequently occurring value

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
mostFreq(x, ...)

## S3 method for class 'character'
mostFreq(x, ...)

## S3 method for class 'factor'
mostFreq(x, ...)

## S3 method for class 'logical'
mostFreq(x, ...)

## S3 method for class 'numeric'
mostFreq(x, ...)

Arguments

x

A suitable vector

...

currently ignored

Value

The "most typical" value as described

Examples

1

BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.