WriteMatrixToFile: Function to write a data matrix to a text file.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/WriteMatrixToFile.R

Description

Function to write a data matrix to a text file.

Usage

1
WriteMatrixToFile(tmpMatrix, tmpFileName, blnRowNames, blnColNames)

Arguments

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.

Value

Text file containing the data matrix.

Author(s)

Peiyong Guan

See Also

write.table

Examples

1
2
3
4
5
6
7
#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)

nlawlor/multiClust documentation built on May 16, 2019, 8:12 p.m.