Good afternoon. I have the following data:
NOME <- c("MARIA 1001", "MARIA 1002A", "JOSE 1003B", "PEDRO 1003", "CARLOS 1019J", “ANTONIO 50”, “MARIA 80”)
VALOR <- c(10, 20, 30, 40, 50, 60, 70)
dados <- data.frame(NOME, VALOR)
I need to filter lines that are between 1001 to 1019, regardless of their position (beginning, middle, or end of text).
My expected result is that you exclude only the "ANTONIO 50"
and "MARIA 80"
lines. I would like help how to proceed to make this filter. Thank you.