.BG
.VE $Header: /usr/s/current/s/.help/RCS/write,v 1.3 86/06/05 16:13:16 rab Exp $
.FN write
.TL
write: Write Data to File
.CS
write(data, file, ncol, append)
.PP
.AG data
vector, missing values (NAs) are allowed.
.AG file
optional character string naming the file on which to write
the data. The name of `data' will be used by default; if
`data' has no name, the file will be called "data".
.AG ncol
optional number of data items to put on each line of `file'.
Default is 5 per line for numeric data, 1 per line for
character data.
.AG append
logical, if TRUE, the values are appended to the data already in `file'.
If FALSE (the default), any prior contents of `file' are overwritten.
.PP
Because of the way matrix data is stored,
matrices are written in column by column order.
.PP
See also functions `dput', and `dump'.
.EX
write(x,"filex")

write(t(x),file="byrows",ncol=ncol(x))   # write matrix row by row
.KW basic*
.KW file
.KW output
.KW write
.WR
