Displaying 1 result from an estimated 1 matches for "paircounter".
2006 Jul 05
2
apologes if you already saw this :efficiency question
...ows so i was hoping there might be a ( even just slightly. it doesn't have to be incresible improvement ) more efficient way to do this. I also think that remember someone saying that using the c command to make something bigger is not a good idea.
the code is below. thanks.
for paircounter in 1:nrow(tempdata) {
firsstock<-gsub(" ","",tempdata[paircounter,1]
secondstock<-gsub(" ","",tempdata[paircounter,2]
if ( paircounter == 1 ) {
stocklist<-c(firststock,second...