suRtex {suRtex}R Documentation

LaTeX descriptive statistic reporting for survey data

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

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)


[Package suRtex version 0.9 Index]