write_matrix: Write an R matrix to a file (In a Bi-Force or QUBIC2 readable...

write_matrixR Documentation

Write an R matrix to a file (In a Bi-Force or QUBIC2 readable format).

Description

Write an R matrix to a file (In a Bi-Force or QUBIC2 readable format).

Usage

write_matrix(m, filename, qubic2_format = FALSE)

Arguments

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.

Value

0 if file was written successfully.

Examples

write_matrix(matrix(c(1,2,3,4), nrow=2), "testfile.txt")


tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.