Displaying 1 result from an estimated 1 matches for "earlist".
Did you mean:
earliest
2010 Apr 08
0
selected observations based several variables
...r observations whose donot have the same x and y
values.
#So the final result should be
x y date prior var5
1 1.1 2 2008-12-01 A 1
5 1.3 1.8 2007-05-06 C 5
2 1.3 1.8 2007-05-20 N 2
#obs1 and obs3 have same x and y; Their date difference is 5, so we will
select the earlist obs1 But we notice that its prior value is N, while
another is A, so we also need to replace N using A.
#obs2,obs4 and obs5 have same x and y; Obs4 and obs5 has a date difference
4<=8days,
so earlies obs 5 will be selected, but also we need to replace A using C
because of the priority.If the pri...