writeMatrix: Export matrix into a commonly used tab-delimited format...

View source: R/writeMatrix.R

writeMatrixR Documentation

Export matrix into a commonly used tab-delimited format inside Roche Bioinformatics

Description

writeMatrix writes a matrix into a non-quoted, tab-delimited file.

Usage

writeMatrix(x, file, row.names = TRUE)

Arguments

x

a matrix

file

file to be written to

row.names

logical, whether row.names is appended. Default: TRUE

Details

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

Value

No return value, called for side effects (writes to file).

See Also

readMatrix to read in matrix

Examples

test.mat <- matrix(rnorm(1000), nrow=10)
writeMatrix(test.mat, tempfile())

ribiosIO documentation built on Feb. 20, 2026, 5:09 p.m.