Skip to content
Back to formatted view

Raw Message

Message-ID: <XFMail.020808081644.theis@statistik.uni-dortmund.de>
Date: 2002-08-08T06:16:44Z
From: Winfried Theis
Subject: Constructing titles from list of expressions
In-Reply-To: <Pine.A41.4.44.0208070848090.119858-100000@homer15.u.washington.edu>

Dear Thomas,

thanks a lot for this detailed reply! I think this is really a good lesson in
advanced R-programming! ;-)

On 07-Aug-02 Thomas Lumley wrote:
[Snip]
> In your example you wanted b and c to be elements of a vector.  They
> actually have to be elements of a list
> 
>> c(quote(beta),quote(gamma^3))
> [[1]]
> beta
> 
> [[2]]
> gamma^3
> 
> So
>  expr1<-quote(alpha)
>  expr2<-c( quote(beta), quote(gamma^3))
>  plot(1:10,main=substitute("Estimated "*a*" for "*b*" vs."*c,
>         list(a=expr1,b=expr2[[1]],c=expr2[[2]])))
So, if I had been true to my subject and not exchanged the "list" by a "vector",
things should have worked out correctly at some point of my tests...

Thank you again,

Winfried
---------------------------------------------------------------------
E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de>
Date: 08-Aug-02

Dipl.-Math. Winfried Theis
SFB 475, Fachbereich Statistik, Universit"at Dortmund, 44221 Dortmund
Tel.: +49-231-755-5903 FAX: +49-231-755-4387
----------------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._