ascii
object, which can then be
printed with asciidoc, txt2tags, reStructuredText, org, textile or
pandoc syntax.## S3 method for class 'default':
ascii(x, include.rownames = TRUE, include.colnames = TRUE, rownames = NULL, colnames = NULL, format = "f", digits = 2, decimal.mark = ".", na.print = "", caption = NULL, caption.level = NULL, width = 0, frame = NULL, grid = NULL, valign = NULL, header = TRUE, footer = FALSE, align = NULL, col.width = 1, style = NULL, tgroup = NULL, n.tgroup = NULL, talign = "c", tvalign = "middle", tstyle = "h", bgroup = NULL, n.bgroup = NULL, balign = "c", bvalign = "middle", bstyle = "h", lgroup = NULL, n.lgroup = NULL, lalign = "c", lvalign = "middle", lstyle = "h", rgroup = NULL, n.rgroup = NULL, ralign = "c", rvalign = "middle", rstyle = "h", list.type = "bullet", ...)## S3 method for class 'describe':
ascii(x, condense = TRUE, ...)
## S3 method for class 'sessionInfo':
ascii(x, locale = TRUE, ...)
## S3 method for class 'survfit':
ascii(x, scale = 1, print.rmean = getOption("survfit.print.rmean"), rmean = getOption("survfit.rmean"), include.rownames = TRUE, include.colnames = TRUE, header = TRUE, ...)
ascii(x, ...)
methods(ascii)
. If x
is a list, it should
be a list of character strings (it will produce a
bulleted list output by default).TRUE
the rows
names are printed. Default value depends of class of
x
.TRUE
the
columns names are printed. Default value depends of class
of x
.NULL
(default) the row names are not
modifiedNULL
(default) the column names are
not modifiedformatC
function. Use "d"
(for integers), "f"
, "e"
, "E"
,
"g"
2
."."
.NA
should be formatted specially. Default is "".""
to
suppress the caption. Default value is NULL
.0
to 5
, "."
(block
titles in asciidoc markup), "s"
(strong),
"e"
(emphasis), <1
..."asciiTable"
, "asciiList"
or "asciiMixed"
.survival
x
. For example, summary.table
objects produce a
bulleted list while data.frame
objects produce a table of
the entire data.frame.Sometimes, arguments are not active, depending of the features implemented in the markup language generated. All arguments are active when asciidoc syntax is produced.
The available method functions for ascii
are given by
methods(ascii)
. Users can extend the list of available
classes by writing methods for the generic function ascii
.
All method functions should return an object of class
"ascii"
.
data(esoph)
ascii(esoph[1:10,])
tab <- table(esoph$agegp, esoph$alcgp)
ascii(tab)
print(ascii(tab), type = "t2t")
print(ascii(tab), type = "rest")
print(ascii(tab), type = "org")
ascii(summary(tab))
Run the code above in your browser using DataLab