[BioC] passing character string as an environment arguement

John Zhang jzhang at jimmy.harvard.edu
Tue Sep 13 20:16:38 CEST 2005


>I am writing a wrapper function for annotations. I would like to be able
>to pass the GeneChip identifier to mget as a character string. Attempts
>to do this via "paste", as below, do not work because envir expects an
>object, not a character string. Is there a work around for this?
>
>mget(x=affyIDVec[i], envir=paste("rat2302", GENENAME, sep=""), mode =
>"any", ...

get(paste("rat2302", GENENAME, sep = "")) will return the object.



>
>Mark W. Kimpel MD
>
>_______________________________________________
>Bioconductor mailing list
>Bioconductor at stat.math.ethz.ch
>https://stat.ethz.ch/mailman/listinfo/bioconductor

Jianhua Zhang
Department of Medical Oncology
Dana-Farber Cancer Institute
44 Binney Street
Boston, MA 02115-6084



More information about the Bioconductor mailing list