simplewrite | R Documentation |
Write data into csv, xlsx, xls, rds, rdata or dta files
simplewrite(
data,
file,
type,
sheet,
password = NULL,
write.res.password = NULL
)
data |
object with data to write. For rdata can be a single object or a list of objects. |
file |
file name and path to write to. If missing the object name will be used. No extension is needed, this will be added. |
type |
file type to save data as as a string. If not defined the file name extension will be used or "csv" if no extension given. Options are csv, xlsx, xls, rdata, rdsd, dta. |
sheet |
Optional; for xlsx and xls the sheet name to write data to. |
password |
Password for password-protected workbook. |
write.res.password |
Second password for editing workbook. |
writes data to file
Diane Hatziioanou
# simplewrite(data, "C:..../file.csv")
# simplewrite(data, "C:..../file.xlsx", sheet = "Data")
# simplewrite(data, "C:..../file.xls", sheet = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.