Re: [R] rbind on a list

2009-04-23 Thread David Hajage
Thank you, it is working. David 2009/4/23 Henrique Dallazuanna > Try this: > > lapply(names(col.prop), function(idx)rbind(col.prop[[idx]], n[[idx]])) > > On Thu, Apr 23, 2009 at 7:33 AM, David Hajage wrote: > >> I have two lists (and possibly more): >> >> col.prop <- >> structure(list(B = stru

Re: [R] rbind on a list

2009-04-23 Thread Henrique Dallazuanna
Try this: lapply(names(col.prop), function(idx)rbind(col.prop[[idx]], n[[idx]])) On Thu, Apr 23, 2009 at 7:33 AM, David Hajage wrote: > I have two lists (and possibly more): > > col.prop <- > structure(list(B = structure(c(0.5, 0.5, 0.6, 0.4, 0.556, > 0.444), class = c("

[R] rbind on a list

2009-04-23 Thread David Hajage
I have two lists (and possibly more): col.prop <- structure(list(B = structure(c(0.5, 0.5, 0.6, 0.4, 0.556, 0.444), class = c("cast_matrix", "matrix"), .Dim = 2:3, .Dimnames = list( NULL, NULL)), D = structure(c(1, 0, 0.667, 0.333, 0.8, 0.2), cla