I am trying to remove all rows where 4 and 5 are next to each other, so I just want to keep the lines that have a 4 and a 5 but with at least one number in between. Does anyone know how to do that?
structure(list(data_rel_1 = c("4 5 5 5", "4 5 NA NA", "4 5 5 5",
"4 1 5 1", "4 5 5 5", "4 5 NA NA", "4 5 4 8", "4 10 5 5", "4 5 8 7"
)), row.names = c(NA, -9L), class = c("tbl_df", "tbl", "data.frame"
))