Your reducer function could be something like:

function(rds) do.call(c, rds)

On Tue, Apr 27, 2010 at 11:32 AM, Ivan Gregoretti <[email protected]>wrote:

> Hello listers,
>
> Can anybody show how to consolidate the list output of rdapply to
> RangedData?
>
>
>
> rdapply accepts a RangedData objects and outputs a list. That may be
> inconvenient and that is why there is the
> reducerFun argument to help you undo that list.
>
> The vignette shows an example where a list of numbers is coerced into
> a vector of numbers. It is done quite simply with
>
> reducerFun = unlist,
> reducerParams = list(use.names = FALSE)
>
> Well, that is simple if, like in the example, the elements of the
> lists are just integers. What if the elements of the list are
> RangedData?
>
> Can anybody show an example? I tried and failed.
>
> Thank you
>
> Ivan
>
> Ivan Gregoretti, PhD
> National Institute of Diabetes and Digestive and Kidney Diseases
> National Institutes of Health
>
> _______________________________________________
> Bioc-sig-sequencing mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>

        [[alternative HTML version deleted]]

_______________________________________________
Bioc-sig-sequencing mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing

Reply via email to