I have a dataset that looks the following:
ID1      x1   x2
200      10   NA
200      12   NA
200      13   NA
200      NA   17
200      NA   16
200      NA   19
I would like to remove the part of the column that has NA, then I will have an output like this
ID1   x1   x2
200   10   17
200   12   16
200   13    19
How can I do this in R?
 
     
    