| mean_sd | R Documentation | 
Compute the mean and standard deviation of a vector, returning a formatted string containing the values as 'M +/- SD'
mean_sd(
  x = NULL,
  MoreArgs = NULL,
  give_df = TRUE,
  ...,
  mean_x = NULL,
  sd_x = NULL
)
## Default S3 method:
mean_sd(
  x = NULL,
  MoreArgs = NULL,
  give_df = TRUE,
  ...,
  mean_x = NULL,
  sd_x = NULL
)
## S3 method for class 'data.frame'
mean_sd(
  x = NULL,
  MoreArgs = NULL,
  give_df = TRUE,
  ...,
  mean_x = NULL,
  sd_x = NULL
)
x | 
 numeric vector of values to summarize  | 
MoreArgs | 
 named list of arguments to pass to   | 
give_df | 
 logical. Should mean, sd, and summary string be returned in a data frame?  | 
... | 
 additional arguments passed to   | 
mean_x | 
 an already-calculated mean value for   | 
sd_x | 
 an already-calculated sd value for   | 
either a formatted character scalar (if give_df == FALSE), or
else a data frame containing columns for the mean value, standard
deviation, and formatted character string combining the two.
mean_sd(rnorm(100, 50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.