[R] R: string connections

Emily Knight emily.knight at ctsu.ox.ac.uk
Wed Sep 29 14:56:38 CEST 2004


I had a similar problem, but with trying to join text and an expression.
What I wanted to print in my title was <text> <expression> <text>
Paste doesn't work because it just pastes the expression(...) into the string, and I can make the text into an 
expression, but then I don't know how to join 2 expressions together.
Any ideas?
Thanks.
Emily.

On 29 Sep 2004 at 14:10, Dimitris Rizopoulos wrote:

> Hi Allan,
> 
> look at ?paste, e.g.,
> 
> a <- 10
> plot(1:10, 1:10, main=paste("The value of a is", a))
> 
> I hope it helps.
> 
> Best,
> Dimitris
> 
> ----
> Dimitris Rizopoulos
> Ph.D. Student
> Biostatistical Centre
> School of Public Health
> Catholic University of Leuven
> 
> Address: Kapucijnenvoer 35, Leuven, Belgium
> Tel: +32/16/396887
> Fax: +32/16/337015
> Web: http://www.med.kuleuven.ac.be/biostat/
>      http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm
> 
>




More information about the R-help mailing list