[BioC] assigning phenoData via assign

Benilton Carvalho bcarvalh at jhsph.edu
Mon May 7 17:29:30 CEST 2007

Hi everyone,

I'm sorry if this was already discussed, as I did not succeed finding  
anything relevant in the archives.

I'm trying to set the phenoData slot using get() or something  
similar, eg:

objName <- "sample.ExpressionSet"
pd <- phenoData(get(objName))

get(objName)@phenoData <- pd    ## this will fail

I could copy the object to a temporary one:

tmp <- get(objName)
tmp at phenoData <- pd
assign(objName, tmp)

how can I avoid this copy?

thanks a lot,


More information about the Bioconductor mailing list