Not really sure how ddply works (the "." syntax seems a bit weird) but I
think you want something like:

do.call(c, tapply(gr, list(gr$transcript_id, gr$type), function(tt) {
}, simplify=FALSE))

Michael


On Fri, Mar 21, 2014 at 8:19 AM, Ido Tamir <tamir@imp.ac.at> wrote:

> Hi,
> I need to aggregate Granges by metadata I would like to write something
> like:
>
> ggply(granges, .(transcript_id, type), function(tt) {
>   ...
> })
>
> is this possible?
>
> thank you very much,
> ido
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor@r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
>

	[[alternative HTML version deleted]]

