CatTable

0th

Percentile

Function to write a table

CatTable helps printing a table, if is has to be broken into multiple rows. Rowlabels will be repeated after every new break.

Keywords
print
Usage
CatTable(tab, wcol, nrepchars, width = getOption("width"))
Arguments
tab
the rows of a table to be printed, pasted together in one string with constant columnwidth.

wcol
integer, the width of the columns. All columns must have the same width.

nrepchars
integer, the number of characters to be repeated with every break. This is typically the maximum width of the rowlabels.

width
integer, the width of the whole table. Default is the width of the current command window (getOption("width")).

See Also

table, paste

Aliases
  • CatTable
Examples
# used in bivariate description functions
Desc(temperature ~ cut(delivery_min, breaks=40), data=d.pizza)


txt <- c( 
   paste(sample(letters, 500, replace=TRUE), collapse="")
 , paste(sample(letters, 500, replace=TRUE), collapse="")
 , paste(sample(letters, 500, replace=TRUE), collapse="")
)
txt <- paste(c("aaa","bbb","ccc"), txt, sep="")

CatTable(txt, nrepchars=3, wcol=5)
Documentation reproduced from package DescTools, version 0.99.19, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.