Skip to content
Back to formatted view

Raw Message

Message-ID: <AA19919E-4ABD-483D-85EE-4A60CD1AE703@comcast.net>
Date: 2010-01-20T04:22:14Z
From: David Winsemius
Subject: A question
In-Reply-To: <1263961023601-1018144.post@n4.nabble.com>

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

>
> Hi all, I have a expression like that :
>
>> rep(2,4)
> [1] 2 2 2 2

 > paste(rep(2,4), sep="", collapse="")
[1] "2222"


>
> 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,
> -- 
> View this message in context: http://n4.nabble.com/A-question-tp1018144p1018144.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT