Splitting Strings and Generating Frequency Tables in R
问题 I have a column of firm names in an R dataframe that goes something like this: "ABC Industries" "ABC Enterprises" "123 and 456 Corporation" "XYZ Company" And so on. I'm trying to generate frequency tables of every word that appears in this column, so for example, something like this: Industries 10 Corporation 31 Enterprise 40 ABC 30 XYZ 40 I'm relatively new to R , so I was wondering of a good way to approach this. Should I be splitting the strings and placing every distinct word into a new