Rdocumentation
powered by
Learn R Programming
reporttools (version 1.1.4)
Generate "LaTeX"" Tables of Descriptive Statistics
Description
These functions are especially helpful when writing reports of data analysis using "Sweave".
Copy Link
Link to current version
Version
Version
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
Install
install.packages('reporttools')
Monthly Downloads
465
Version
1.1.4
License
GPL (>= 2)
Maintainer
Kaspar Rufibach
Last Published
April 5th, 2025
Functions in reporttools (1.1.4)
Search all functions
NAtoZero
Change NAs in a vector into a given value.
nominalTest
Compute Chi square or Fisher's exact test
correctVarNames
Modify all entries in a data frame such that xtable has no problems displaying them
pairwise.fisher.test
Pairwise Fisher's exact test
transformVarNames2
Generate R-code assigning each variable in a data frame to its name
transformVarNames
Generate R-code assigning each variable in a data frame to its name
tableNominal
Display descriptive statistics for nominal variables
tableDate
Display descriptive statistics for date variables
addLineBreak
Break lines in a text column of a dataframe.
attachPresAbs
Attach levels absent and present to a 0-1 vector.
displayKbyC
Function to display a K x C frequency table including col- and row-names and totals
displayCrossTabs
Function to display a set of K x C frequency tables, including p-value
eliminateNA
Eliminate all observations with at least one NA in a data frame
twoGroupComparisons
Compute a table with analysis of two groups comparisons
reporttools-package
Generate LaTeX Tables of Descriptive Statistics
tableContinuous
Generate a LaTeX table of descriptive statistics for continuous variables
varNamesToChar
Split a character string into variable names
disp
Display vectors of numbers, especially targeted to vectors of p-values
attachYesNo
Attach levels no and yes to a 0-1 vector.
colToMat
Break a n * p data frame in a data frame with ceiling(n / cols) rows and cols * p columns
checkDateSuccession
Check whether dates in two vectors are elementwise consecutive
formatPercent
Format a numeric proportion.
formatPval
Format P Values
displayCI
Generate strings of a confidence interval from a matrix
NAtoCategory
Change NAs in a factor into a category
displayCoxPH
Function to display a coxph() object
getFonts
Used by the tabulating functions to format column titles
math
Enclose a string in math dollars