[BioC] How to convert a character string to a variable name?
Ariel Chernomoretz
ariel.chernomoretz at crchul.ulaval.ca
Thu Sep 1 16:06:57 CEST 2005
Hi,
I am not 100% sure, but you could try
get("1441536_at", envir=get(sprintf("%sLOCUSID", cleancdfname(cdfName(x),
addcdf=FALSE))))
Ariel./
On September 1, 2005 09:35 am, Groot, Philip de wrote:
> Hello all,
>
>
>
> I have the following particular problem. Consider the following two
> R/BioC commands:
>
>
>
> 1. > get("1441536_at", envir=mouse4302LOCUSID)
>
> [1] 208715
>
> 2. get("1441536_at", envir=sprintf("%sLOCUSID", cleancdfname(cdfName(x),
> addcdf=FALSE)))
>
> Error in get(x, envir, mode, inherits) : invalid 'envir' argument
>
>
>
> The problem with the second command is that the 'envir' variable is
> presented as a character string. R cannot handle this and I cannot
> overcome this problem. Somehow, I must make it clear to R that this is
> not a string, but that it is a variable name. Has anyone any idea how to
> do this? This problem seems to be an obvious one, but I spent quite some
> time on this without finding a solution.
>
>
>
> Regards,
>
>
>
> Philip de Groot
>
> Wageningen University
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
--
Ariel Chernomoretz, Ph.D.
Centre de recherche du CHUL
2705 Blv Laurier, bloc T-367
Sainte-Foy, Qc
G1V 4G2
(418)-525-4444 ext 46339
More information about the Bioconductor
mailing list