# PlusMinus

From tables v0.8.8
by Duncan Murdoch

##### Generate `x +/- y`

terms in table.

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,
character.only = FALSE, ...)
```

##### Arguments

- x,y
Expressions to be displayed in the columns on the left and right of the

`+/-`

sign, respectively.- head
If not missing, this will be used as a column heading for the two columns.

- xhead, yhead
If not missing, these will be used as individual column headings.

- digits, …
Parameters to pass to the

`format`

function.- character.only
If

`TRUE`

, the`head`

,`xhead`

and`yhead`

arguments will be interpreted as expressions evaluating to character values.

##### Value

An expression which will produce the requested output in LaTeX.

##### Examples

```
# NOT RUN {
stderr <- function(x) sd(x)/sqrt(length(x))
latex( tabular( (Species+1) ~ Sepal.Length*
PlusMinus(mean, stderr, digits=1), data=iris ) )
# }
```

*Documentation reproduced from package tables, version 0.8.8, License: GPL-2*

### Community examples

Looks like there are no examples yet.