ToString | R Documentation |
Convert an object to a character string, suitable for including in error messages.
ToString(object, ...)
object |
An object to be printed to a string. |
... |
Extra arguments passed to |
A string (a character vector of length 1) containing the printed value of the object.
Steven L. Scott steve.the.bayesian@gmail.com
m <- matrix(1:6, ncol = 2)
printed.matrix <- ToString(m)
y <- c(1, 2, 3, 3, 3, 3, 3, 3)
tab <- table(y)
printed.table <- ToString(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.