SyntaxFix
Write A Post
Hire A Developer
Questions
A variation of https://stackoverflow.com/a/12430764/589165 is
> nchar(gsub("[^a]", "", q.data$string)) [1] 2 1 0