This function takes a vector and returns one or mode values that represent the mode point of the data
Mode(x)
x | a vector |
---|
a vector containing one or more modal values for the input vector
Be careful the function does some basic error checking but the return to
Mode(NA)
is NA
and a vector where the majority of entries
are NA
is also NA
#> [1] 73Mode(mtcars$hp)#> [1] 110 175 180Mode(iris$Sepal.Length)#> [1] 5