[R] Combining two variables in text
Dimitris Rizopoulos
d.rizopoulos at erasmusmc.nl
Tue Sep 28 12:26:51 CEST 2010
try this:
a <- "one"
b <- "two"
paste(a, b, sep = ", ")
I hope it helps.
Best,
Dimitris
On 9/28/2010 12:12 PM, trb1 wrote:
>
> Hi all,
>
> how can I manually create a data.frame or similar object to display in a
> textplot, that omits column and row numbers/headings?
>
> Also, how can I combine several variables in text
> i.e. suppose I have
> a<- "one"
> b<- "two"
> then what expression can I place in
> title(main=...)
> in terms of a and b to give an output title of
> "one, two"
> i.e. a then b separated by a comma.
>
> Thanks
>
>
--
Dimitris Rizopoulos
Assistant Professor
Department of Biostatistics
Erasmus University Medical Center
Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands
Tel: +31/(0)10/7043478
Fax: +31/(0)10/7043014
More information about the R-help
mailing list