Skip to content
Prev 175229 / 398506 Next

Column name assignment problem

Since you want to generate your own variable names instead of using a
list, do the operation in three steps:

x <- get(paste("arunoff_",table_year, sep=''))
colnames(x)[4] <- "COUNT"
assign(paste("arunoff_",table_year, sep=''), x)
On Fri, Mar 27, 2009 at 4:01 PM, Steve Murray <smurray444 at hotmail.com> wrote: