- x
a matrix or data frame to be written.
- file
a character string indicating the name of the data file
with the file extension .csv, .dat,
.txt, .sav, .xlsx, or .dta.
Note that the function will select an appropriate
write-function depending on the file extension.
- sep
a character string indicating the field separator, i.e.,
string for the delimiter. By default, the write.data
function uses a semicolon ";", while the function
write.data1 function uses a comma "," for
writing a CSV, DAT, or TXT data file
- dec
a character string indicating the decimal separator, i.e.,
string for decimal points. By default, the write.data
function uses a comma ",", while the function
write.data1 function uses a decimal point "."
for writing a CSV, DAT, or TXT data file.
- na
a character string to use for missing values in the data.
By default, a blank string "" is used.
- row.names
logical: if FALSE, row names are written.
- col.names
logical: if TRUE (default), column names are written.
- check
logical: if TRUE (default), argument specification
is checked.
- ...
additional arguments to pass to the fwrite
write.sav, write.xlsx, or
write.dta function, see Arguments
section in the help pages.