quartile {UAHDataScienceSF} | R Documentation |
Quartiles Function
Description
This function calculates the quartiles of a numeric vector.
Usage
quartile(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 quartiles of the vector (for non-interactive mode)
Examples
data <- c(1,2,2,5,10,4,2)
# Simple calculation
quartile(data)
# Learning mode
quartile(data, learn = TRUE)
# Interactive mode
if(interactive()){
quartile(interactive = TRUE)
}
[Package UAHDataScienceSF version 1.0.0 Index]