do.call.rbind: Faster way to 'do.call(rbind, lst)'

Description Usage Arguments References Examples

View source: R/do.call.rbind.R

Description

This is a functionalized version of Dominik's answer here: http://stackoverflow.com/questions/7224938/can-i-rbind-be-parallelized-in-r it does what do.call(rbind, lst) would do, but faster and with less memory usage

Usage

1

Arguments

lst

a list to be rbound. (No guaranteed this funtion will offer an improvement unless lst is a lits of xts objects)

References

http://stackoverflow.com/questions/7224938/can-i-rbind-be-parallelized-in-r

Examples

1
2
3
4
x <- xts(rnorm(10000), Sys.time()-10000:1*60)
splx <- split(x, 'days')
dcrx <- do.call.rbind(splx)
identical(x, dcrx)

qmao documentation built on May 2, 2019, 4:54 p.m.