I have a variable that is alphanumeric - always starts with a letter and followed by numbers. Ex. A483, B472, K112
I want to create a dataset with only the variables that start with a certain letter. Ex. A dataset with only rows that included the variable starting with F.
I tried:
Fonlydata = data %>% filter(variable == "^[F]")
but doesn't work. Could anyone please help? Thank you