I have a dataframe where I want to delete all rows with specific pattern. I am confused with compiling a regular expression.
Data:
structure(list(id = 1:5, email = c("[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]")), class = "data.frame", row.names = c(NA,
-5L))
What I am trying to do is:
data <- data %>%
filter(email != "[email protected]")
But something is wrong with my regex. What is the most effective way to compose a regular expression for such patterns? What is the proper regex pattern for my sample case?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…