[BioC] AnnotatedDataFrame and cbind

Simon Anders anders at embl.de
Thu Oct 21 18:01:27 CEST 2010


Hi

I've got two objects of class AnnotatedDataFrame and would like to 
combine them in the style of 'cbind'. How is this done?

Is there really no method defined for 'cbind' and 'AnnotatedDataFrame' 
or am I overlooking something?


What I mean is that this here works with ordinary data.frames:

 > df1 <- data.frame( A=1:5 )
 > df2 <- data.frame( B=11:15 )
 > cbind( df1, df2 )
   A  B
1 1 11
2 2 12
3 3 13
4 4 14
5 5 15

I'd expect hence that this should work, too:

 > library( Biobase )
 > adf1 <- new( "AnnotatedDataFrame", df1 )
 > adf2 <- new( "AnnotatedDataFrame", df2 )
 > cbind( adf1, adf2 )
      adf1 adf2
[1,] ?    ?

Is there maybe something else defined?

Thanks.

   Simon



+---
| Dr. Simon Anders, Dipl.-Phys.
| European Molecular Biology Laboratory (EMBL), Heidelberg
| office phone +49-6221-387-8632
| preferred (permanent) e-mail: sanders at fs.tum.de



More information about the Bioconductor mailing list