search for: baa3900a

Displaying 1 result from an estimated 1 matches for "baa3900a".

Did you mean: b1a39000
2008 Aug 12
5
produce variable on the fly
Hi guys, I want to create variable on the fly: for example for (i in 1:10) { cat(paste("VAR",i,sep="")) } Will print VAR1, VAR2 etc up to VAR10. However I want to make these into variables, and then give them a value, for example: vect = c(10:20) for (i in 1:10) { cat(paste("VAR",i,sep="")) = vect[i] } THis doesnt work but I hope it demonstrates