rpact: Confirmatory Adaptive Clinical Trial Design and Analysis

writeDatasets {rpact}R Documentation

Write Multiple Datasets


Writes a list of datasets to a CSV file.


writeDatasets(datasets, file, ..., append = FALSE, quote = TRUE,
  sep = ",", eol = "\n", na = "NA", dec = ".", row.names = TRUE,
  col.names = NA, qmethod = "double", fileEncoding = "UTF-8")



A list of datasets.


The target CSV file.


Further arguments to be passed to write.table.


Logical. Only relevant if file is a character string. If TRUE, the output is appended to the file. If FALSE, any existing file of the name is destroyed.


The set of quoting characters. To disable quoting altogether, use quote = "". See scan for the behavior on quotes embedded in quotes. Quoting is only considered for columns read as character, which is all of them unless colClasses is specified.


The field separator character. Values on each line of the file are separated by this character. If sep = "," (the default for writeDatasets) the separator is a comma.


The character(s) to print at the end of each line (row).


The string to use for missing values in the data.


The character used in the file for decimal points.


Either a logical value indicating whether the row names of dataset are to be written along with dataset, or a character vector of row names to be written.


Either a logical value indicating whether the column names of dataset are to be written along with dataset, or a character vector of column names to be written. See the section on 'CSV files' for the meaning of col.names = NA.


A character string specifying how to deal with embedded double quote characters when quoting strings. Must be one of "double" (default in writeDatasets) or "escape".


Character string: if non-empty declares the encoding used on a file (not a connection) so the character data can be re-encoded. See the 'Encoding' section of the help for file, the 'R Data Import/Export Manual' and 'Note'.


The format of the CSV file is optimized for usage of readDatasets.

See Also

[Package rpact version 2.0.5 Index | www.rpact.org]