Re: [R] apply with as function ifelse with 2 logical conditions

2012-02-20 Thread Berend Hasselman
On 20-02-2012, at 10:40, Nerak wrote: > Hi all, > I have a question concerning using several conditions in an ifelse function > used as the function in apply. > I want to create a new value with the function ifelse ‘ object which can be > coerced to logical mode “test[n,] >1 & test[n-1,]==0

[R] apply with as function ifelse with 2 logical conditions

2012-02-20 Thread Nerak
Hi all, I have a question concerning using several conditions in an ifelse function used as the function in apply. I want to create a new value with the function ifelse ‘ object which can be coerced to logical mode “test[n,] >1 & test[n-1,]==0” With n I mean the row. I don’t know how I could