[R] Converting a string

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Oct 29 22:39:22 CET 2007


Gang Chen wrote:
> This must be very simple, but I'm stuck. I have a command line in R  
> defined as a variable of a string of characters. How can I convert  
> the variable so that I can execute it in R?
>
>   
First parse() it then eval() the result

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list