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

View source: R/descriptives.R

meanseR Documentation

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)

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?

Value

character vector with mean ± SEM, rounded to desired precision

Examples

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

wrappedtools documentation built on Sept. 1, 2022, 5:06 p.m.