latex_ct: Print a cross-table to be copy-pasted or sourced into a TeX...

Description Usage Arguments Value Examples

Description

See http://tex.stackexchange.com/a/32690 and http://tex.stackexchange.com/questions/49746/a-table-with-square-cells.

Usage

1

Arguments

x

Numeric binary matrix.

Value

Nothing.

Examples

1
2
3
4
mat <- matrix(rbinom(size = 1, n = 7 * 12, p = .333), nrow = 7, ncol = 12)
latex_ct(x = mat)
colnames(mat) <- paste0("A", 1:ncol(mat))
latex_ct(x = mat)

corybrunson/context documentation built on May 13, 2019, 10:52 p.m.