Re: [R] Problems with 'valid columns' when using merge

2009-05-01 Thread jim holtman
Your parameters to merge do not appear to be objects; they are strings, You might want to try: merge(x=get(paste("arunoff_",start_arunoff, sep="")), y You might want to consider a 'list' for storing your data. Also are you ever 'detach'ing? It is useful to find ways to avoid 'attach' (

[R] Problems with 'valid columns' when using merge

2009-05-01 Thread Steve Murray
Dear all, I am trying to use 'merge' within a loop, however, I receive an error relating to the 'by' argument of the command, as follows: > merge_year <- 1986 > > for (i in 1:10) { # Number of file pairs + assign(paste("merged_arunfek_", merge_year, sep=""), merge(x=paste("arunoff_",start