write_matrix {mosbi} | R Documentation |
Write an R matrix to a file (In a Bi-Force or QUBIC2 readable format).
write_matrix(m, filename, qubic2_format = FALSE)
m |
A Numeric matrix. |
filename |
Name of the output file. |
qubic2_format |
Write the matrix in a format QUBIC2 is able to read. This means adding a row- and column names to the file. |
0 if file was written successfully.
write_matrix(matrix(c(1,2,3,4), nrow=2), "testfile.txt")