Skip to content
Prev 174907 / 398506 Next

Manual sort in a for loop

I assume you need to use 'get' to retrieve the value:

table_year=1951
for (i in (paste("arunoff_",year,"_temp",sep=""))) {
         assign(paste("arunoff_",table_year,
sep=""),get(paste("arunoff_",table_year,"_temp"))[c(10,7,9,5,4,12,1,3,2,8,11,6),])
         table_year = table_year+1
         }
On Wed, Mar 25, 2009 at 1:58 PM, Steve Murray <smurray444 at hotmail.com> wrote: