Entering edit mode
Benilton Carvalho
★
4.3k
@benilton-carvalho-1375
Last seen 4.5 years ago
Brazil/Campinas/UNICAMP
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:
library(Biobase)
objName <- "sample.ExpressionSet"
data(list=objName)
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)
rm(tmp)
how can I avoid this copy?
thanks a lot,
b