cas.write.table: Write a CAS Table to a Table

View source: R/read_write.R

cas.write.tableR Documentation

Write a CAS Table to a Table

Description

This function downloads an in-memory table from the CAS server and saves it as a file that is accesible to R (the client). This function is a convenience wrapper for the R write.table function.

Usage

cas.write.table(
  CASTable,
  file = "",
  append = FALSE,
  quote = TRUE,
  sep = " ",
  eol = "\n",
  na = "NA",
  dec = ".",
  row.names = TRUE,
  col.names = TRUE,
  qmethod = c("escape", "double"),
  fileEncoding = ""
)

Arguments

CASTable

The instance of the CASTable to save as as a file.

file

An character string that specifies the filename for the file. If you do not specify the file, then the table is printed to the terminal.

append

An optional logical value. This value is passed to write.table.

quote

An optional logical value or numeric vector. This value is passed to write.table.

sep

An optional character that is used to separate values in the file. This value is passed to write.table.

eol

An optional character string that is used as the end-of-line character or characters. This value is passed to write.table.

na

An optional character string to represent missing values. This value is passed to write.table.

dec

An optional character to represent the decimal separator. This value is passed to write.table.

row.names

An optional logical value or a character vector of row names. This value is passed to write.table.

col.names

An optional logical value or a character vector of column names. This value is passed to write.table.

qmethod

An optional chracter string that describes how to write embedded quotation marks. This value is passed to write.table.

fileEncoding

An optional character string that specifies the encoding to use for writing the file. This value is passed to write.table.

See Also

Other functions for saving in-memory data: cas.saveRDS(), cas.write.csv(), cas.write.xlsx()

Examples

## Not run: 
# 
cas.write.table(myCasTable, file="/path/to/data_out.txt", na="")

## End(Not run)

sassoftware/R-swat documentation built on Feb. 26, 2024, 8 a.m.