Hi,
I have a data
id a b
1 1 2
2 . .
3 1 3
4 . .
5 . .
In the above data I have "a" has duplicate. So. I want take the second duplicate value "b" to the first.
Also the missing values should be deleted if it is in between the duplicates. If the missing values are not between, then I want to take only one and not the duplicate missing value.
want data:
id a b
1 1 3
4 . .