Timeline for Produce a list of variable name in a for loop, then assign values to them
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 16, 2015 at 19:21 | comment | added | Mars | For future questions of a similar nature, I'd suggest that this kind of question actually belongs on StackOverflow. The question has nothing to do with statistics per se. | |
May 16, 2011 at 12:01 | comment | added | mpiktas | @mbq, why? I can understand that there are specific scenarios when this is not desirable, but in general why not? | |
May 16, 2011 at 11:52 | comment | added | user88 |
Variables in .GlobalEnv is precisely what I try to omit.
|
|
May 16, 2011 at 10:49 | comment | added | mpiktas |
@mbq, hm, list2env is a relatively new function. And still it will produce the variables in the some environment, when the OP wants to get the variables in the top environment. So the ugliness still remains :)
|
|
May 16, 2011 at 10:38 | comment | added | user88 |
@mpiktas In R, it is more natural to make a list, set its names parameter and later either just use it, attach it or convert it into an environment with list2env and eval inside it. With no loops, parse or other ugly stuff.
|
|
May 16, 2011 at 10:24 | comment | added | mpiktas | @mbq, in Eviews for example this is pretty normal coding practice. Not that I am advocating it, Eviews rates only a bit lower than Excel in my top evil software list :) | |
May 16, 2011 at 9:36 | comment | added | user88 | I doubt you you have to do this -- it seems you're making something in a very wrong way. | |
May 16, 2011 at 5:46 | answer | added | mpiktas | timeline score: 23 | |
May 16, 2011 at 4:18 | history | edited | Rob Hyndman | CC BY-SA 3.0 |
added 6 characters in body
|
May 16, 2011 at 3:12 | history | tweeted | twitter.com/#!/StackStats/status/69963301781643264 | ||
May 16, 2011 at 0:51 | answer | added | Bernd Weiss | timeline score: 46 | |
May 16, 2011 at 0:17 | history | asked | Han Lin Shang | CC BY-SA 3.0 |