Skip to content

[Bioc-devel] on the subject of combine, cbind and rbind

2 messages · Hervé Pagès, Kasper Daniel Hansen

#
Hi Kasper,
On 07/12/2016 09:31 AM, Kasper Daniel Hansen wrote:
A 1st little step that would maybe help would be to have rbind() on
DataFrame objects work when the columns are the same but not in the
same order. This is something that works with ordinary data frames.

That being said, we might want to do more e.g. have cbind() on
SummarizedExperiment objects work when the colData don't have the
same columns.

And I guess that would be pretty much it for the improvements to
cbind,SummarizedExperiment. It needs to stick to the cbind semantic
i.e. it should not try to merge assay columns and should preserve the
nb of rows. As Michael pointed out, that kind of feature (i.e. merging
assay columns and/or rows) would belong to something like a merge() or
maybe a combine().

H.

  
    
#
Well, combine() has been extremely useful in my work and I would love to
have a version for SummarizedExperiment's.  I do appreciate that it might
not be the job of cbind.

merge did the work for me for DataFrame's.

Best,
Kasper
On Tue, Jul 12, 2016 at 4:24 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: