[R] how to create automatically names for vectors in a loop?

Zoppoli, Gabriele (NIH/NCI) [G] zoppolig at mail.nih.gov
Fri May 28 04:43:48 CEST 2010


I want to generate a number of vectors and store them with different names, like this:


while (x<100)

   vector#x# = rnorm(100)

where each vector has, at its hand, instead of #x# a number which goes from 1 to 99.

How can I do this?


Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest Researcher, LMP, NCI, NIH, Bethesda MD

Work: 301-451-8575
Mobile: 301-204-5642
Email: zoppolig at mail.nih.gov

More information about the R-help mailing list