[R] Column name assignment problem
Steve Murray
smurray444 at hotmail.com
Thu Mar 26 13:33:06 CET 2009
Dear all,
I'm trying to assign a name to the fourth column whilst using 'assign', but keep encountering errors. What have I done wrong?!
> assign(colnames(c(paste("arunoff_",table_year, sep="")[4]), "COUNT"))
Error in if (do.NULL) NULL else if (nc> 0) paste(prefix, seq_len(nc), :
argument is not interpretable as logical
Hope someone is able to help.
Thanks for any pointers,
Steve
_________________________________________________________________
[[elided Hotmail spam]]
More information about the R-help
mailing list