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

2009-04-20 Thread Thomas Lumley
On Mon, 20 Apr 2009, Stavros Macrakis wrote: 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 habi

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

2009-04-20 Thread Bert Gunter
tiste auguie Sent: Monday, April 20, 2009 3:07 PM To: Stavros Macrakis Cc: r-help Subject: Re: [R] The assign(paste(...,i),...) idiom I vaguely recall thinking with such convoluted constructs when switching from Matlab to R. The lack of generic data structures such as lists makes you define variable

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

2009-04-20 Thread baptiste auguie
I vaguely recall thinking with such convoluted constructs when switching from Matlab to R. The lack of generic data structures such as lists makes you define variable names that you can identify and manipulate. There are structures in Matlab, but I think they are much less used than lists i