CatTable | R Documentation |
CatTable helps printing a table, if is has to be broken into multiple rows. Rowlabels will be repeated after every new break.
CatTable(tab, wcol, nrepchars, width = getOption("width"))
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
( |
Andri Signorell <andri@signorell.net>
table
, paste
options(scipen=8)
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.