If I am dealing with a dataset like this
Id Index Value
1233 i1 Blue
1233 i2 Blue
1233 i3 Blue
6545 i1 Red
6545 i2 NA
6545 i3 Black
4177 i1 NA
4177 i2 NA
4177 i2 NA
How do I create a new dataset by retaining only one instance of repeating values for Id like 1233 and 4177 like this below.
Id Index Value
1233 i Blue
6545 i1 Red
6545 i2 NA
6545 i3 Black
4177 i NA