[R] create a vector

Christos Hatzis christos at silicoinsights.com
Thu May 18 07:04:06 CEST 2006


paste("A", 1:300, sep="") 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of YIHSU CHEN
Sent: Thursday, May 18, 2006 12:56 AM
To: R-help at stat.math.ethz.ch
Subject: [R] create a vector

Dear R users:

I have an elementary question:  how to creat a vector of [A1, A2, A3......
A300]?  I know c(1:300) would give 1, 2, 3, ...., 300 but not sure how to
attch a A to each element.  

Thank you

Yihsu Chen
The Johns Hopkins University

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html




More information about the R-help mailing list