[R] How generate "A01", "A02", ..., "A99"?

A.J. Rossini rossini at blindglobe.net
Fri Aug 20 21:58:46 CEST 2004


"Yao, Minghua" <myao at ou.edu> writes:

> Hi,
>  
> Anyone can tell me how to generate "A01", "A02", ..., "A99"?
>  
> paste("A", 1:99, sep="") generates "A1", "A2",..., "A99". This is not  what I want.

c(paste("A0",1:9,sep=""),paste("A",10:99,sep=""))

?

-- 
Anthony Rossini			    Research Associate Professor
rossini at u.washington.edu            http://www.analytics.washington.edu/ 
Biomedical and Health Informatics   University of Washington
Biostatistics, SCHARP/HVTN          Fred Hutchinson Cancer Research Center
UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable
FHCRC  (M/W): 206-667-7025 FAX=206-667-4812 | use Email

CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}




More information about the R-help mailing list