get_mode | R Documentation |
This function calculates the most common value(s) of a given set
get_mode(x, moden = 1, quiet = FALSE)
x |
A variable or vector (numeric, character or factor) |
moden |
If there are multiple modes, which mode to use. The default is the first mode. |
quiet |
By default, messages are printed if multiple modes are selected. To hide these messages, set |
A vector of length 1 containing the mode
get_mode(trial$stage)
get_mode(trial$trt)
get_mode(trial$response)
get_mode(trial$grade)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.