Displaying 1 result from an estimated 1 matches for "streamingfileread".
Did you mean:
streamingfilereader
2009 Jul 17
1
Help with R.oo
...ingsAccount(5)
[1] "SavingsAccount: 0x18706032"
> SavingsAccount("fruit")
[1] "SavingsAccount: 0x605387128"
The second time, the input should fail, balance is not numeric.
------------------------------
A second attempt, with my own code:
setConstructorS3("StreamingFileReader", function(fileName,
hasHeader=T, sep="\t") {
if (missing (fileName)) throw ("Must supply a file name!");
if (missing(hasHeader)) hasHeader <-T;
if (missing(sep)) sep="\t";
extend(Object(), "StreamingFileReader",
.fileName=fileName,
.hasHe...