Re: [R] Vectorizing a loop

2012-02-07 Thread Jeff Newmiller
On Tue, 7 Feb 2012, David Winsemius wrote: On Feb 7, 2012, at 12:56 PM, Jeff Newmiller wrote: On Tue, 7 Feb 2012, Alexander Shenkin wrote: Hello Folks, I'm trying to vectorize a loop that processes rows of a dataframe. It involves lots of conditionals, such as "If column 10 == 3, and if c

Re: [R] Vectorizing a loop

2012-02-07 Thread David Winsemius
On Feb 7, 2012, at 12:56 PM, Jeff Newmiller wrote: On Tue, 7 Feb 2012, Alexander Shenkin wrote: Hello Folks, I'm trying to vectorize a loop that processes rows of a dataframe. It involves lots of conditionals, such as "If column 10 == 3, and if column 3 is True, and both column 5 and 6

Re: [R] Vectorizing a loop

2012-02-07 Thread Petr Savicky
On Tue, Feb 07, 2012 at 11:39:42AM -0500, Alexander Shenkin wrote: > Hello Folks, > > I'm trying to vectorize a loop that processes rows of a dataframe. It > involves lots of conditionals, such as "If column 10 == 3, and if column > 3 is True, and both column 5 and 6 are False, then set column 4

Re: [R] Vectorizing a loop

2012-02-07 Thread Jeff Newmiller
On Tue, 7 Feb 2012, Alexander Shenkin wrote: Hello Folks, I'm trying to vectorize a loop that processes rows of a dataframe. It involves lots of conditionals, such as "If column 10 == 3, and if column 3 is True, and both column 5 and 6 are False, then set column 4 to True". So, for example, a