ascii (version 1.2)

ascii: Export R objects to several markup languages...

Description

Export R objects to several markup languages Function converting an R object to an ascii object, which can then be printed with asciidoc, txt2tags, reStructuredText, org or textile syntax.

Usage

ascii(x, ...)

Arguments

x
An R object of class found among methods(ascii).
...
Additional arguments. (see ?ascii.default).

Value

  • This function returns an object of class c("ascii","proto","environment").

Details

The nature of the output generated depends on the class of 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 c("ascii","proto","environment").

See Also

print.ascii

Examples

Run this code
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 DataCamp Workspace