Learn R Programming

wrappedtools (version 0.9.7)

meanse: Compute mean and standard error of mean and put together with the ± symbol.

Description

meanse computes SEM based on Standard Deviation/square root(n)

Usage

meanse(x, mult = 1, roundDig = 2, drop0 = FALSE)

Value

character vector with mean ± SEM, rounded to desired precision

Arguments

x

Data for computation.

mult

multiplier for SEM, default 1, can be set to e.g. 2 or 1.96 to create confidence intervals

roundDig

Number of relevant digits for roundR.

drop0

Should trailing zeros be dropped?

Examples

Run this code
# basic usage of meanse
meanse(x = mtcars$wt)

Run the code above in your browser using DataLab