I am new in R. I have this data frame:
TimeStamp IndexA IndexB Value
12:00:01 1 NA Windows
12:00:05 1 NA Windows
12:00:13 1 NA Windows
12:00:48 NA 1 Macintosh
12:01:30 NA 1 Macintosh
12:01:45 NA 1 Macintosh
12:02:01 2 NA Windows
12:02:13 2 NA Windows
And I want to remove duplicated rows based on columns IndexA
and Value
or IndexB
and Value
. So, in the end the data frame should be seen like this:
TimeStamp IndexA IndexB Value
12:00:01 1 NA Windows
12:00:48 NA 1 Macintosh
12:02:01 2 NA Windows
How can I manage this ?