powered by
This function calculates the percentiles of a numeric vector.
percentile(x = NULL, p = NULL, learn = FALSE, interactive = FALSE)
The percentile value (for non-interactive mode)
Optional numeric vector (not needed for interactive mode)
Numeric value between 0 and 1 for percentile calculation (not needed for interactive mode)
Logical, if TRUE shows step-by-step explanation
Logical, if TRUE enables interactive practice mode
data <- c(1,4,3,3,2,5,7,12) # Simple calculation percentile(data, 0.3) percentile(data, 0.3, learn = TRUE) if(interactive()){ percentile(interactive = TRUE) }
Run the code above in your browser using DataLab