[R] print

Pijus Virketis pvirketis at hbk.com
Wed Sep 11 14:27:35 CEST 2002


>Suppose I have a vector
>Fruits <- c('Apple','Orange','Pear','Banana','Mango')
>I want to print the statement
>"The fruits in the basket are: Apple, Orange, Pear, Banana, Mango"

How about this: cat("The fruits in the basket are: ", paste(Fruits))

Cheers, 

Pijus


----
W: 212-588-7897
F: 212-446-1955 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list