Learn R Programming

tables (version 0.3)

PlusMinus: Generate x +/- y terms in table.

Description

This function generates a component of a table formula to output two columns separated by a +/- sign. It is designed only for LaTeX output.

Usage

PlusMinus(x, y, head, xhead, yhead, digits = 2, ...)

Arguments

Value

An expression which will produce the requested output in LaTeX.

Examples

Run this code
stderr <- function(x) sd(x)/sqrt(length(x))
latex( tabular( (Species+1) ~ Sepal.Length*
          PlusMinus(mean, stderr, digits=1), data=iris ) )

Run the code above in your browser using DataLab