forODFTable: Convert an object of class CrossTable into a matrix for...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/forODFTable.R

Description

The function converts an object of class CrossTable into a matrix to be printed by odfTable() of odfWeave package.

Usage

1
forODFTable(x, digits = 1, ...) 

Arguments

x

A object of class CrossTable.

digits

See round.

...

Optional arguments passed to format.

Value

A matrix.

Author(s)

Jakson A. Aquino [email protected].

See Also

CrossTable

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(odfWeave)
data(infert, package = "datasets")
x <- crosstab(infert$education, infert$induced, expected = TRUE)

# Use the function directly:
odfTable(forODFTable(x))

# Create a method for odfTable:
odfTable.CrossTable <- function(x) odfTable(forODFTable(x))
odfTable(x)
methods(odfTable)

## End(Not run)

descr documentation built on May 2, 2019, 3:28 p.m.