| write.pbat | R Documentation |
Writes a ‘pbat’ object (the result of calling pbat.m) to disk.
write.pbat(x, filename, resultsOnly=FALSE)
write.pbat.csv(x, filename, resultsOnly=FALSE)
x |
Object of class |
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.