View source: R/calc_mode_binary.R
| calc_mode_binary | R Documentation |
Calculate mode of a binary numeric vector
calc_mode_binary(x)
x |
A numeric vector consisting only of binary values (0 and 1). |
Returns a numeric vector representing the mode value. Returns 1 if there is a tie. Returns 'NA' if the vector is empty.
calc_mode_binary(c(0, 1, 1, 0, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.