write_matrix {mosbi}R 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")


[Package mosbi version 1.0.1 Index]