[R] as.formula doesn't want to take a phrase

Dimitri Liakhovitski dimitri.liakhovitski at gmail.com
Mon Apr 18 21:44:53 CEST 2011


Hello!

I am trying to create a formula object using as.formula. But it's not working:

examplephraze<-"for.my.example"
myformula<-as.formula(paste(examplephraze,"~group, sum, data=mydata",sep=""))

What's the problem?
Thanks a lot!

-- 
Dimitri Liakhovitski
Ninah Consulting
www.ninah.com



More information about the R-help mailing list