cas.write.csv | R Documentation |
This function downloads an in-memory table from the
CAS server and saves it as a CSV file that is accesible
to R (the client). This function is a convenience
wrapper for the R write.csv
function.
cas.write.csv(
CASTable,
file = "",
quote = TRUE,
eol = "\n",
na = "NA",
row.names = TRUE,
fileEncoding = ""
)
CASTable |
The instance of the CASTable to save as as a CSV file. |
file |
An |
quote |
An optional |
eol |
An optional |
na |
An optional |
row.names |
An optional |
fileEncoding |
An optional |
append |
An optional |
sep |
An optional |
dec |
An optional |
col.names |
An optional |
qmethod |
An optional |
This function saves the file on the R client. As an
alternative, you can use the cas.table.save
generated function to save a server-side CSV file.
Other functions for saving in-memory data:
cas.saveRDS()
,
cas.write.table()
,
cas.write.xlsx()
## Not run:
# upload a SAS data set to an in-memory table
gold_medals <- cas.read.sas7bdat(s, "/path/to/gold_medals.sas7bdat")
# download the in-memory table as a CSV file
cas.write.csv(gold_medals, "~/gold_medals.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.