Re: [R] using if then statements in a dataframe

2011-08-10 Thread David Winsemius
On Aug 10, 2011, at 7:34 PM, Ward, Michael Patrick wrote: I used this service several months ago and was very pleased with the response. I have a dataframe with several thousand lines and to each line I need to apply a series of "if else" statements. For each row I need either a value

Re: [R] using if then statements in a dataframe

2011-08-10 Thread Weidong Gu
Mike, One thing I noticed that '&&' should be replaced by '&'. The former is applied to the first element of the vector while the latter applicable to the whole vector. HTH Weidong Gu On Wed, Aug 10, 2011 at 7:34 PM, Ward, Michael Patrick wrote: > > I used this service several months ago and