Learn R Programming

CUFF (version 1.9)

meansd: function to compute mean and sd into a single string

Description

Methods that estimates a mean and sd and stores it into a single string

Usage

meansd(x, digits = c(1, 1))

Value

Returns a string containing mean and sd with entered digit precisions.

Arguments

x

A vector of numeric value

digits

digits for respectively the mean and sd. If a single value is entered it applies to mean and sd

Author

Charles-Édouard Giguère

Examples

Run this code
xf(Sepal.Width ~ Species, iris, meansd)

Run the code above in your browser using DataLab