View source: R/standard_deviation.R
standard_deviation | R Documentation |
This function calculates the standard deviation of a numbers vector.
standard_deviation(x = NULL, learn = FALSE, interactive = FALSE)
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 |
The standard deviation of the vector (for non-interactive mode)
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.