Skip to content
Prev 308757 / 398503 Next

How to pick colums from a ragged array?

So I get my list of IDs to exclude from:

g.rr<-do.call(rbind, g.r)[1]
dim(g.rr)
g.rr[1:(dim(g.rr)[1]/2)]

Many thanks.

Stuart

-----Original Message-----
From: Rui Barradas [mailto:ruipbarradas at sapo.pt] 
Sent: 23 October 2012 13:42
To: Stuart Leask
Cc: r-help at r-project.org
Subject: Re: FW: [R] [r] How to pick colums from a ragged array?

Hello,

You're right, getRepeat returns a list of data.frames, one per each ID. 
To put them all in the same df use

do.call(rbind, g.r)

Rui Barradas
Em 23-10-2012 13:36, Stuart Leask escreveu: