forODFTable | R Documentation |
The function converts an object of class CrossTable into a matrix to be printed by ‘odfTable()’ of odfWeave package.
forODFTable(x, digits = 1, ...)
x |
A object of class ‘CrossTable’. |
digits |
See round. |
... |
Optional arguments passed to format. |
A matrix.
Jakson A. Aquino jalvesaq@gmail.com.
CrossTable
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.