ds_mode: Mode

Description Usage Arguments Details Value Deprecated Function See Also Examples

View source: R/ds-describe.R

Description

Compute the sample mode

Usage

1
ds_mode(x, na.rm = FALSE)

Arguments

x

a numeric vector containing the values whose mode is to be computed

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Details

Any NA values are stripped from x before computation takes place.

Value

Mode of x

Deprecated Function

'stat_mode()' has been deprecated. Instead use 'ds_mode()'.

See Also

mean median

Examples

1
2

rsquaredacademy/descriptr documentation built on Oct. 7, 2018, 1:02 p.m.