I'm trying to pull the letter frequencies from a text file. I want it to create two columns.
The text file for example might have "aabbbbccc".
I want the output to be...
Key Count
a 2
b 4
c 3
Here's what I have now. I'm sure it's wrong...
mydata3 <- read.table("/Users/ChristopherFlach/Documents/ds710fall2016assignment6/encryptedA.txt", header = FALSE)
as.data.frame(table(strsplit(mydata3,"")))
attach(mydata3)