[R] Combined variable names

Thomas Lumley tlumley at u.washington.edu
Tue Nov 30 23:48:30 CET 2004


On Tue, 30 Nov 2004, Tobias Muhlhofer wrote:

> I am trying to define a large number of variables through a loop construct.
>
> I have my loop variable i being cycled through 1:100 and I would like the 
> variables produced by this to be called
>
> vi (i.e. v1 v2 v3 etc)
>

Look at FAQ 7.21, which explains how to do it and suggest that you might 
not really want to.


 	-thomas




More information about the R-help mailing list