Skip to content

A question

2 messages · Ron Michael, David Winsemius

#
Hi all, I have a expression like that :
[1] 2 2 2 2

Now I want to write it as "2222" through some automated way. Is there is
function for doing that? I have tested with paste(), but count not get any
desired result.

Thanks,
#
On Jan 19, 2010, at 11:17 PM, Ron_M wrote:

            
> paste(rep(2,4), sep="", collapse="")
[1] "2222"
David Winsemius, MD
Heritage Laboratories
West Hartford, CT