5
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 the lines that are between 1001 to 1019, regardless of their position (beginning, middle or end of the text).
My expected result is to delete only the lines "ANTONIO 50"
and "MARIA 80"
. I would like help how to proceed to make this filter. Thank you.