Skip to content
Prev 172603 / 398506 Next

how to create many variables at one time?

Hi Manli,
you may consider structuring your data in some appropriate form like 
data.frame or list. Its often not the best way holding information 
separated in many variables.
But if you *really* want to create 100 separate variables, something like

for (i in 1:100) assign(paste("X",i,sep=""), some_values)

will do the job.


Manli Yan schrieb: