Displaying 2 results from an estimated 2 matches for "tickernam".
Did you mean:
tickernames
2012 Jul 22
2
Reading many large files causes R to crash - Possible Bug in R 2.15.1 64-bit Ubuntu
...included everything, but the issue appears to be when performing the
scan in the method parseTickData.
Below is the code. Hopefully this is the right place to post.
parseTickDataFromDir = function(tickerDir, per, subper, fun) {
tickerAbsFilenames = list.files(tickerDir,full.names=T)
tickerNames = list.files(tickerDir,full.names=F)
tickerNames = gsub("_[a-zA-Z0-9].csv","",tickerNames)
pb <- txtProgressBar(min = 0, max = length(tickerAbsFilenames), style = 3)
for(i in 1:length(tickerAbsFilenames)) {
# Grab Raw Tick Data
dat.i = parseTick...
2004 May 15
0
" cannot allocate vector of length 1072693248"
...took it for a spin.
>>
>> Odd, but looking at your code, it doesn??t look like it should run, and
>> indeed it doesn??t, past the second loop. Early in the loop
>> you overwrite
>> ??USData?? as follows:
>>
>> USdata <- USdata[USdata$symbol == tickernames[i], -54]
>>
>> Then at the end of the loop your remove it with:
>>
>> rm(USdata) ## ,risk.rf,risk.pred,risk.rsq,
>>
>> So on my second pass, I get the following error:
>>
>>> finished 1 of 30
>>> Just loaded: 2 of 30 . AI...