Compute the mode of a vector. The function makes the difference between continuous and discontinuous variables (which are made up of integers only).
一个向量的计算模式。该功能使得连续和不连续的变量(这是由唯一的整数)之间的差异。
用法----------Usage----------
mod(x)
参数----------Arguments----------
参数:x
numeric vector.
数字矢量。
(作者)----------Author(s)----------
Maxime Herv茅 <mx.herve@gmail.com>
参见----------See Also----------
density
density
实例----------Examples----------
# Continuous variable[连续变量]
x <- rnorm(100)
mod(x)
# Discontinuous variable[不连续变量]
y <- rpois(100,2)
mod(y)