Description Usage Arguments References See Also Examples
The data (usually a matrix) x
are written to file file
.
If x
is a two-dimensional matrix you need to transpose it to get the
columns in file
the same as those in the internal representation.
1 2 3 |
x |
the data to be written out, usually an atomic vector. |
file |
A connection, or a character string naming the file to write to.
If |
ncolumns |
the number of columns to write the data in. |
append |
if |
sep |
a string used to separate columns. Using |
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
write
is a wrapper for cat
, which gives further
details on the format used.
save
for writing any R objects,
write.table
for data frames,
and scan
for reading data.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.