outXT takes the output from CrossTable in the gmodels
package and produces either LaTeX code or CSV file that can be imported into
word processing software.
outXT(
obj,
count = TRUE,
prop.r = TRUE,
prop.c = TRUE,
prop.t = TRUE,
col.marg = TRUE,
row.marg = TRUE,
digits = 3,
type = "word",
file = NULL
)A list returned by CrossTable from the gmodels
package.
Logical indicating whether the cell frequencies should be returned.
Logical indicating whether the row proportions should be returned.
Logical indicating whether the column proportions should be returned.
Logical indicating whether the cell proportions should be returned.
Logical indicating whether the column marginals should be printed.
Logical indicating whether the row marginals should be printed.
Number of digits to use in printing the proportions.
String where word indicates a CSV file will be produced
and latex indicates LaTeX code will be generated.
Connection where the file will be written, if NULL the
output will only be written to the console
A file containing LaTeX Code or CSV data to make a table