mode_ {UAHDataScienceSF} | R Documentation |
Mode Function
Description
This function calculates the mode of a numbers vector.
Usage
mode_(x = NULL, learn = FALSE, interactive = FALSE)
Arguments
x |
Optional numeric vector (not needed for interactive mode) |
learn |
Logical, if TRUE shows step-by-step explanation |
interactive |
Logical, if TRUE enables interactive practice mode |
Value
The mode of the vector (for non-interactive mode)
Examples
data <- c(5,21,12,7,3,9,1)
# Simple calculation
mode_(data)
# Learning mode
mode_(data, learn = TRUE)
# Interactive mode
if(interactive()){
mode_(interactive = TRUE)
}
[Package UAHDataScienceSF version 1.0.0 Index]