Displaying 1 result from an estimated 1 matches for "3row".
Did you mean:
1row
2013 Apr 18
1
select and do some calculations/manipulations on certain rows based on conditions in R
...so Y is automatically = 0 for that row.
So in my data I posted Y4=0.
I hope this clarify the issues a little more.
Thanks,
T
On Thu, Apr 18, 2013 at 2:42 PM, <smartpink111 at yahoo.com> wrote:
Hi,
>Not sure I understand it correctly.
>For the 3rd row, you are comparing the 3row and 4th row. ?i.e if there is anywhere 1 on 3rd row and 1 directly below that cell, then the y value will be 1. ?What is the use of the sum of products here? ?If one value is 0 and other is 1, the product should be 0. ?Also, by this method, you are comparing 1st row against 2nd, 2nd against 3rd, 3r...