Learn R Programming

hyperSpec (version 0.95)

mean_sd: Mean and Standard Deviation

Description

Calculate mean and standard deviation, and mean, mean $\pm$ one standard deviation, respectively.

Usage

mean_sd(x, na.rm = TRUE)
mean_pm_sd(x, na.rm = TRUE)

Arguments

x
a numeric vector
na.rm
handed to mean and sd

Value

  • mean_sd returns a vector with two values (mean and standard deviation) of x.

    mean_pm_sd returns a vector with 3 values: mean - 1 sd, mean, mean + 1 sd.

Details

These functions are provided for convenience.

See Also

mean, sd

Examples

Run this code
mean_sd (flu$c)
  mean_pm_sd (flu$c)

Run the code above in your browser using DataLab