Re: [R] Generating new variable based on values of an existing variable

2009-02-09 Thread Marc Schwartz
on 02/09/2009 01:30 PM Josip Dasovic wrote: > Dear R Help-Listers: > > I have a problem that seems like it should have a simple solution, but I've > spent hours on it (and searching the r-help archives) to no avail. What I'd > like to do is to generate a new variable within a data frame, the val

Re: [R] Generating new variable based on values of an existing variable

2009-02-09 Thread Christos Hatzis
lp-boun...@r-project.org] On Behalf Of Josip Dasovic > Sent: Monday, February 09, 2009 2:30 PM > To: r-help@r-project.org > Subject: [R] Generating new variable based on values of an > existing variable > > Dear R Help-Listers: > > I have a problem that seems like it should

[R] Generating new variable based on values of an existing variable

2009-02-09 Thread Josip Dasovic
Dear R Help-Listers: I have a problem that seems like it should have a simple solution, but I've spent hours on it (and searching the r-help archives) to no avail. What I'd like to do is to generate a new variable within a data frame, the values of which are dependent upon the values of an exis