You are totally right David! Thank you so much for your correction!
Best regards,
Jorge
On Tue, Jul 28, 2009 at 11:34 PM, David Winsemius <> wrote:
> That did not actually deliver the requested results because it bound before
> it unique-ed.
>
> > unique(do.call(rbind,z))
> [,1] [,2]
> [1,]
That did not actually deliver the requested results because it bound
before it unique-ed.
> unique(do.call(rbind,z))
[,1] [,2]
[1,] 110
[2,]90
[3,] 101
[4,]71
I found it necessary to do a bit more list processing before the
rbind:
> do.call( rbind, lapply
Dear Kathryrn,
Here is one way:
unique(do.call(rbind,z))
See ?unique, ?do.call and ?rbind for more information.
HTH,
Jorge
On Tue, Jul 28, 2009 at 6:21 PM, kathie <> wrote:
>
> Dear R users...
>
>
> I have a list, "z", below.
>
>
> z<-list(matrix(c(11,11,9,0,0,0),3,2),matrix(c(10,10,10,1,1,1
Dear R users...
I have a list, "z", below.
z<-list(matrix(c(11,11,9,0,0,0),3,2),matrix(c(10,10,10,1,1,1),3,2),
matrix(c(7,10,1,1),2,2))
> z
[[1]]
[,1] [,2]
[1,] 110
[2,] 110
[3,]90
[[2]]
[,1] [,2]
[1,] 101
[2,] 101
[3,] 101
[[3]]
4 matches
Mail list logo