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