I am working in R and I have a character vector. I would like to subset this vector by the first letter of the string of characters. So, for example, how can I subset the vector to return only those elements in the vector that start with the letter A?
Share
you can use grep: