Skip to content
Prev 170313 / 398503 Next

Extending each element in a list, or rbind()-ing arrays of different length without recycling

Try this.  After the apply from your post we use lapply
to make each series into a zoo series so that we can later
use zoo's multiway merge.  Finally we actually merge them
and in the next statement just makes nice column names:
X1 X2 X3
1  2 10  1
2  7  6  9
3  9  8  7
4 NA NA  2
5 NA NA  0
On Thu, Feb 12, 2009 at 2:31 PM, Jason Shaw <jason.shaw.23 at gmail.com> wrote: