[R] Combining two variables in text

Greg Snow Greg.Snow at imail.org
Tue Sep 28 21:19:17 CEST 2010


Also ?sprintf for another approach.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Johannes Huesing
> Sent: Tuesday, September 28, 2010 5:25 AM
> To: r-help at r-project.org
> Subject: Re: [R] Combining two variables in text
> 
> trb1 <thomasrbolton at yahoo.co.uk> [Tue, Sep 28, 2010 at 12:12:01PM
> CEST]:
> [...]
> > 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.
> >
> 
> Type ?paste at the prompt.
> 
> --
> Johannes Hüsing               There is something fascinating about
> science.
>                               One gets such wholesale returns of
> conjecture
> mailto:johannes at huesing.name  from such a trifling investment of fact.
> http://derwisch.wikidot.com         (Mark Twain, "Life on the
> Mississippi")
> 
> ______________________________________________
> 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.


More information about the R-help mailing list