WriteMatrixToFile {multiClust} | R Documentation |
Function to write a data matrix to a text file.
WriteMatrixToFile(tmpMatrix, tmpFileName, blnRowNames, blnColNames)
tmpMatrix |
The object matrix containing data. |
tmpFileName |
The string name of the text file to write the matrix to. |
blnRowNames |
Logical value indicating if row names of the matrix should be written along with the matrix. |
blnColNames |
Logical value indicating if the column names of the matrix should be written with the matrix. |
Text file containing the data matrix.
Peiyong Guan
#Load sample dataset data(iris) # View sample matrix iris[1:4, 1:4] # Write sample matrix to text file WriteMatrixToFile(tmpMatrix=iris, tmpFileName="iris.sample.matrix.txt", blnRowNames=TRUE, blnColNames=TRUE)