How can I remove a NA value in R and at the same time, the row above and below the NA value? The NA's are in 2 different columns in a large dataset
So in total removing 3 rows at the time for each NA.
Center_x Center_y
200.3 400
NA 200.2
300 100
400.1 450
200 100
100 NA
200 100
I want to get
Center_x Center_y
400.1 450