Writes a matrix or data frame to a file or the console, using column
labels and a layout respecting columns.
USAGE:
write.matrix(x, file="", sep=" ", blocksize)
REQUIRED ARGUMENTS:
x
matrix or data frame.
OPTIONAL ARGUMENTS:
file
name of output file. The default (
"") is
the console.
sep
The separator between columns.
blocksize
If supplied and positive, the output is written in blocks of
blocksize rows. Choose as large as
possible consistent with the amount of memory available.
DETAILS:
Supplying
blocksize is more
memory-efficient and enables larger matrices to be written, but each
block of rows might be formatted slightly differently.
SIDE EFFECTS:
A formatted file is produced, with column headings (if
x
has them) and columns of data.