Displaying 1 result from an estimated 1 matches for "totcols".
Did you mean:
tocols
2002 Apr 02
1
"Large" data set: performance issue
...6 MB).
Then I tried scan() which is almost OK.
I scan() the first line for var-names, then the rest. the data-matrix get
transposed and as.data.frame()'ed.
the problem is converting the last 1801 variabales to "numeric"-mode.
i use the following snippet:
i <- 23;
while( i <= totCols){
datframe[,i]<-as.numeric(datframe[,i]);
i <- i + 1;
}
each step takes ~2 secs which makes all in all about an hour.
I suppose I do something really stupid. For reading the data I use
datfull<-scan(filename,sep=",",skip=1,what="character")
which gives me a transpos...