rbind
R: losing column names when adding rows to an empty data frame
The rbind help pages specifies that : For ‘cbind’ (‘rbind’), vectors of zero length (including ‘NULL’) are ignored unless the result would have zero rows (columns), for S compatibility. (Zero-extent matrices do not occur in S3 and are not ignored in R.) So, in fact, a is ignored in your rbind instruction. Not totally ignored, … Read more
Why is rbindlist “better” than rbind?
rbindlist is an optimized version of do.call(rbind, list(…)), which is known for being slow when using rbind.data.frame Where does it really excel Some questions that show where rbindlist shines are Fast vectorized merge of list of data.frames by row Trouble converting long list of data.frames (~1 million) to single data.frame using do.call and ldply These … Read more