| toText | R Documentation |
Converts an R object into a text representation.
toText(x, ...)
## Default S3 method:
toText(x, ...)
x |
an object |
... |
arguments passed to methods |
A generic function. Method are expected to coerce a given object to
lines of human-readable text that can be used, for instance, for
reports. The purpose of toText is not to store data in a
form that can be read and understood by R; for that, see
dput or dump.
The print method is essentially equivalent to
cat(x, sep = "\n") .
There is no restriction on encoding, so plain text does not necessarily mean ASCII. But current methods do not map into markup-representations.
A character vector (lines of text), possibly with a class attribute
text.
Enrico Schumann
toLatex, toHTML
toText(c("a", "b", "c"))
cat(toHTML(toText(c("a", "b", "c"))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.