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