cas.read.csv | R Documentation |
This function is a convenience wrapper for
the R read.csv
and as.casTable
functions.
After reading the file that is accessible to the R
client, it is uploaded to an in-memory table in
CAS (the server).
cas.read.csv(
conn,
file,
header = TRUE,
sep = ",",
quote = "\"",
dec = ".",
fill = TRUE,
comment.char = "",
casOut = list(name = "", replace = FALSE),
...
)
conn |
An instance of a CAS object that represents a connection and CAS session. |
file |
An |
header |
An optional |
sep |
A |
quote |
A |
dec |
An optional |
fill |
An optional |
comment.char |
An optional |
casOut |
An optional
|
... |
Optional parameters that are passed to
|
CASTable
Other functions for loading in-memory data:
cas.read.jmp()
,
cas.read.sas7bdat()
,
cas.read.table()
,
cas.read.xlsx()
,
cas.readRDS()
## Not run:
# Upload a CSV, the in-memory table is named HEART
heartct <- cas.read.csv(s, "http://support.sas.com/documentation/
onlinedoc/viya/exampledatasets/heart.csv")
# Upload the same CSV, name the in-memory table HEARTCT
heartct <- cas.read.csv(s, "http://support.sas.com/documentation/
onlinedoc/viya/exampledatasets/heart.csv",
casOut=list(name="heartct", replace=TRUE))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.