writeColumns | R Documentation |
Write data.frame or matrix to a text file, using white
space padding to keep columns aligned as in print
.
writeColumns(x, file = "", row.names = TRUE, col.names = TRUE)
x |
the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a matrix. |
file |
a character string naming a file. |
row.names |
a logical value indicating whether the row names of x are to be written along with x. |
col.names |
a logical value indicating whether the column names of x are to be written along with x. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.