I want to calculate the probability of a word like "testword" in R.
To do that I have to check how often there is the letter "t" (2) and how often