stat.mode: Statistical mode value

View source: R/utils.R

stat.modeR Documentation

Statistical mode value

Description

Compute the sample mode Nearly copy-paste from an answer from Ken Williams http://stackoverflow.com/users/169947/ken-williams see http://stackoverflow.com/a/8189441/2116422

Usage

stat.mode(x, type = "mode")

Arguments

x

a numeric vector

type

mode' for the mode; anything else gives the frequence of the mode

Value

the mode (single numeric value) or its frequence


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.