print2file | R Documentation |
A thin wrapper around the sink()
function to print
the corresponding object to a file connection.
print2file(..., file, width = 250)
... |
Object(s) to be printed to file as standard output. |
file |
File name for the output. |
width |
Numeric. Controls the maximum number of columns on a line used
in printing vectors, matrices and arrays, and when filling by |
Stu Field
sink()
tab <- cross_tabulate(mtcars, cyl, carb) print2file(tab, file = "table_file.txt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.