Description Usage Arguments Value Examples
get mode value of a vector
1 | mode_value(x)
|
x |
A vector of numbers, characters, factors |
A value with mode numbers
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Get mode value of a vector of numeric
data <- c(1, 2, 2, 3, 3, 3, 4, 4, 5) #'
mode_value(data)
# Get model value of a vector of character
data <- c("A", "B", "B", "C", "C", "C", "D", "D", "E")
mode_value(data)
# Get model value of a vector of factor
data <- as.factor(c("A", "B", "B", "C", "C", "C", "D", "D", "E"))
mode_value(data)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.