Re: [R] Create Variable names dynamically

2011-04-02 Thread David Winsemius
On Mar 31, 2011, at 3:46 PM, Henrique Dallazuanna wrote: Take a look in ?assign On Thu, Mar 31, 2011 at 5:42 PM, Noah Silverman > wrote: Hi, I want to create variable names from within my code, but can't find any documentation for this. An example is probably the best way to illustrate.

Re: [R] Create Variable names dynamically

2011-03-31 Thread jim holtman
The best thing to do is to understand how to use 'list' for this purpose. Much easier to handle the information. On Thu, Mar 31, 2011 at 4:42 PM, Noah Silverman wrote: > Hi, > > I want to create variable names from within my code, but can't find any > documentation for this. > > An example is p

Re: [R] Create Variable names dynamically

2011-03-31 Thread Noah Silverman
Perfect. Thank You On Mar 31, 2011, at 1:47 PM, Mark Leeds wrote: > hi noah: assign(thing you paste, 123, envir=whatever) should work I think. > > > On Thu, Mar 31, 2011 at 4:42 PM, Noah Silverman > wrote: > Hi, > > I want to create variable names from within my code, but can't find any

Re: [R] Create Variable names dynamically

2011-03-31 Thread Henrique Dallazuanna
Take a look in ?assign On Thu, Mar 31, 2011 at 5:42 PM, Noah Silverman wrote: > Hi, > > I want to create variable names from within my code, but can't find any > documentation for this. > > An example is probably the best way to illustrate. I am reading data in from > a file, doing a bunch of s

[R] Create Variable names dynamically

2011-03-31 Thread Noah Silverman
Hi, I want to create variable names from within my code, but can't find any documentation for this. An example is probably the best way to illustrate. I am reading data in from a file, doing a bunch of stuff, and want to generate variables with my output. (I could make a "list of lists" and n