suRtex: LaTeX descriptive statistic reporting for survey data

Description Usage Arguments Note Author(s)

Description

suRtex was designed for easy descriptive statistic reporting of categorical survey data (e.g., Likert scales) in LaTeX. suRtex takes a matrix or data frame and produces the LaTeX code necessary for a sideways table creation. Mean, median, standard deviation, and sample size are optional.

Usage

1
2
3
suRtex(data, mean = FALSE, median = FALSE, sd = FALSE, 
n = TRUE, sub = "", digits = 2, startdoc = FALSE, 
enddoc = FALSE)

Arguments

data

an object of class "data.frame" or "matrix".

mean, median, sd, n

logicals. If TRUE then an additional column is added to the LaTeX table with the corresponding descriptive statistic.

sub

a character string to be used as a caption.

digits

numeric quantity describing the length of digits to display

startdoc, enddoc

logicals. If TRUE then additional LaTeX code is displayed to make a complete LaTeX document. If FALSE then only the code required for the LaTeX sideways table is given.

Note

suRtex assumes all variables in the data frame or matrix have equivalent levels, such as likert scales.

Author(s)

Dustin Landers (http://www.intensely-curious.com)


suRtex documentation built on May 2, 2019, 9:25 a.m.

Related to suRtex in suRtex...