SyntaxFix
Write A Post
Hire A Developer
Questions
You may also use the stringr package
stringr
library(dplyr) library(stringr) My.Data %>% filter(str_detect(x, '^G45'))
You may not use '^' (starts with) in this case, to obtain the results you need
'^'