Package 'suRtex'

Title: 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.
Authors: Dustin Landers
Maintainer: Dustin Landers <[email protected]>
License: GPL-3
Version: 0.9
Built: 2024-10-31 22:07:28 UTC
Source: https://github.com/cran/suRtex

Help Index


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)