search for: oecdfiscal2

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

2012 Jun 24
2
Defining multiple variables in a loop
...discussed naming multiple variables but it didn't seem to allow me to define the variables as something more useful. I tried the code immediately below (plus some variations) and it just didn't work. for (i in 1:20) { assign(paste("country.", i, sep = "") <- subset(OECDFiscal2, Country == i) } I included some sample code from what I've been working on below so one can see how it would be very useful to figure out how to define a series of variables from cross sectional units from a panel dataset. Any help would be much appreciated. Thanks, Taylor White UCLA...