Description Usage Arguments Format Details Author(s) See Also
VWriter
Visitor class responsible for writing content to files of various formats.
Current formats include .csv, .Rdata, and .txt files
1 |
file |
Object of the File family of classes |
An object of class R6ClassGenerator
of length 24.
VWriter Class Overview: The VWriter class is an implementation of the visitor design pattern, as described in the book "Design Patterns: Elements of Reusable Object-Oriented Software" by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides (hence Gang of Four). This visitor pattern allows new operations to be defined without changing the classes upon which the visitor method operates.
VWriter Methods: The VWriter class supports csv, Rdata, and text files through the following methods:
writeCsv(file)
Method for writing csv files.
writeRdata(file)
Method for writing Rdata files.
writeText(file)
Method for writing text files.
John James, jjames@DataScienceSalon.org
Other Read/Write Classes: Reader
,
VReader
, Writer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.