Skip to content

Combining two variables in text

5 messages · trb1, Dimitris Rizopoulos, Johannes Hüsing +1 more

#
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
#
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:

  
    
#
trb1 <thomasrbolton at yahoo.co.uk> [Tue, Sep 28, 2010 at 12:12:01PM CEST]:
[...]
Type ?paste at the prompt.
#
Also ?sprintf for another approach.