I'm trying to run a filter but it's failing due to the '/' symbol that's not recognised. I would like to rename the text in R by removing the' /'. I know I can rename it in excel before picking up file but I would rather learn how to rename it in R.
This is the command:
Pfizervaccine <- Covidvaccine %>% filter(grepl('PFIZER\BIONTECH', VAX_MANU))
I've tried the command for other vaccines and it works fine, so I know it's to do with the '/' symbol. e.g. Janssenvaccine <- Covidvaccine %>% filter(grepl('JANSSEN', VAX_MANU))
I've attached a screenshot showing the structure of the data.