Skip to content
Prev 170448 / 398503 Next

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

That is very nice.  Maybe just one slight improvement so
to express it in a non-destructive form:

    replace(mat, t(apply(mat,1,duplicated)), NA)


On Fri, Feb 13, 2009 at 12:58 PM, Stavros Macrakis
<macrakis at alum.mit.edu> wrote: