Learn R Programming

UAHDataScienceO (version 1.0.0)

sd_outliersLearn: sd_outliersLearn

Description

Calculates the standard deviation of the input data given the mean.

Usage

sd_outliersLearn(data, mean)

Value

Standard Deviation of the input data

Arguments

data

Input Data that will be used to calculate the standard deviation. Must be a vector

mean

Mean of the input data vector of the function.

Author

Andres Missiego Manjon

Examples

Run this code
inputData = c(1,2,3,4,5,6,1);
mean = sum(inputData)/length(inputData);
sd = sd_outliersLearn(inputData, mean);

Run the code above in your browser using DataLab