[R] The assign(paste(...,i),...) idiom

Stavros Macrakis macrakis at alum.mit.edu
Mon Apr 20 23:44:58 CEST 2009


Judging from the traffic on this mailing list, a lot of R beginners
are trying to write things like

      assign( paste( "myvar", i), ...)

where they really should probably be writing

      myvar[i] <- ...

Do we have any idea where this bizarre habit comes from?

          -s




More information about the R-help mailing list