pbatR (version 2.2-13)

write.pbat: Saving `pbat' Object

Description

Writes a `pbat' object (the result of calling pbat.m) to disk.

Usage

write.pbat(x, filename, resultsOnly=FALSE)
write.pbat.csv(x, filename, resultsOnly=FALSE)

Arguments

x

Object of class pbat.

filename

Filename to save to.

resultsOnly

When TRUE, this only prints the results to file, and not how the function was called. Typically not used.

Details

With write.pbat, a text file is written out with an `&' symbol delimiting the output section. Both the calling and results section are preserved. If the file has the `.csv' extension, then write.pbat.csv is called.

With write.pbat.csv, the text file is of the standard `csv' format to delimit the text file. This should be readable with any spreadsheet program. Note that to use the R output (for the logrank plots), you should open the file in a spreadsheet program and just copy and paste it into R.