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
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
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
3 matches
Mail list logo