0

Using R, I wrote the following code to identify unique_ids in a dataframe that are not within the following range: gou200-gou250.

Today, someone inputed the id guo201 and the code below did not pick it up. I am not sure why. Any thoughts?

 team5_wrong_id=dplyr::filter(team5, !grepl('^(gou)20[1-9]|21[0-9]|22[0-9]|23[0-9]|24[0-9]|25[0]$',unique_id))
rawr
  • 20,481
  • 4
  • 44
  • 78

0 Answers0