Displaying 1 result from an estimated 1 matches for "500cols".
Did you mean:
500calls
2005 Mar 07
1
Faster way of binding multiple rows of data than rbind?
Hi all,
I have a vector that contains the row numbers of data taken from several
filtering operations performed on a large data frame (20,000rows x 500cols).
In order to output this subset of data, I've been looping through the vector
containing the row numbers (keepRows).
output <- data.frame(row.names = rownames(bigMatrix))
for(i in keepRows)
{
output <- rbind(output, bigMatrix[i, ])
}
As you may guess, doing all of these rbinds tak...