I have a dataframe in R that has a list of variables. However, I have printed the last two columns which I am interested in. I want to delete all occurrences of NAs in the value column only when bs_Scores == bs_24.
bs_Scores value
bs_0 16.7
bs_1 41.7
bs_12 33.3
bs_24 NA
bs_0 25
bs_1 41.7
bs_12 NA
bs_24 0
bs_0 16.7
bs_1 41.7
bs_12 16.7
bs_24 16.7
bs_0 NA
Essentially, I want to delete all the rows within bs_24 that have an NA in the value column while preserving all the NAs in bs_0, bs_1 and bs_12.
SO it should look like this
bs_Scores value
bs_0 16.7
bs_1 41.7
bs_12 33.3
bs_0 25
bs_1 41.7
bs_12 NA
bs_24 0
bs_0 16.7
bs_1 41.7
bs_12 16.7
bs_24 16.7
bs_0 NA
Thank you!