[R] get a expression as String

jim holtman jholtman at gmail.com
Mon Mar 17 17:03:14 CET 2008


Is this what you want?

> x <- capture.output(dput(ab))
> x
[1] "y ~ a + b"
>


On 3/17/08, jcgonzales <J.C.Gonzales at cgiar.org> wrote:
>
> Hi, I'm working with Rserve, and in R I  have this expression  ab <- y ~ a +
> b, but the problem with Rserve is I can't get the expression, is there some
> way to convert this expression in String or in List?..thanks
>
> --
> View this message in context: http://www.nabble.com/get-a-expression-as-String-tp16093288p16093288.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list