Thank you very much Miguel ! I couldn't believe it was that easy.
Luis Vega.
--- On Wed, 3/10/10, Miguel Porto wrote:
From: Miguel Porto
Subject: Re: [R] Joining elements of an array into a single element
To: veg...@yahoo.com
Cc: r-help@r-project.org
Date: Wednesday, March 10, 2010, 8:
Hello,
If you do this after the for loop, you'll get what you want:
paste(tre,collapse="")
(you can use whatever separator you want in the collapse argument)
But you don't even need the for loop, just do this instead of the for loop:
paste("con(",p," == ",c,", ",zest,", ",sep="",collapse="")
B
2 matches
Mail list logo