[BioC] String manipulation: String to Command

Robert Gentleman rgentlem at fhcrc.org
Mon Oct 10 17:20:20 CEST 2005


It seems like you want to use do.call, rather than "convert a string to 
a command"

  do.call(direct, list(data.raw))

should do what you want.


Mohammad Esad-Djou wrote:
> Hello, 
> 
> I would like to convert a String to a COMMAND:
> 
> 
>>direkt <- "mas"
>>method <- paste(direkt,"(data.raw)",sep="")
>>method
> 
> [1] "mas(data.raw)"
> 
> here I want to convert stringer to instruction: 
> data.exprs <- method
> 
> but "method" is a string:
> 
>>data.exprs <- method
>>data.exprs 
> 
> [1] "mas(data.raw)"
> 
> 
> How can I solve this problem correctly?
> 
> Thanks,
> Mohammad Esad-Djou
> 
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> 

-- 
Robert Gentleman, PhD
Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M2-B876
PO Box 19024
Seattle, Washington 98109-1024
206-667-7700
rgentlem at fhcrc.org



More information about the Bioconductor mailing list