| writeMatrix | R Documentation |
writeMatrix writes a matrix into a non-quoted, tab-delimited file.
writeMatrix(x, file, row.names = TRUE)
x |
a matrix |
file |
file to be written to |
row.names |
logical, whether row.names is appended. Default: |
Different from the default behaviour of write.table, an empty cell is inserted as the header of row names (equivalent to setting col.names to NA
No return value, called for side effects (writes to file).
readMatrix to read in matrix
test.mat <- matrix(rnorm(1000), nrow=10)
writeMatrix(test.mat, tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.