ss_xtabs: A crosstable in LaTeX

Description Usage Arguments Value

Description

A crosstable in LaTeX

Usage

1
ss_xtabs(formula, data, caption = "", addmargins = NULL, digits = 0)

Arguments

formula

a formula involving columns names of data. This formula will produce the crosstable and will be passed to xtabs function from stats package.

data

a dataframe

caption

caption for the table produced by the function.

addmargins

parameter for addmargins from stats package.

digits

number of digits in the output.

The following parameters will be passed to xtabs and addmargins from stats package.

Value

a latex crosstable with caption and margins


ssinari/smisc documentation built on June 6, 2019, 7:55 a.m.