londonofficemarch<-londonofficemarch %>%
filter(str_detect(BNF_CODE, "0501"))
is my code. However, this finds values in the BNF_CODE column that have 0501 anywhere in them. I want only terms that have 0501 at the beginning of them. Is there a capability in R to do this?