I have an output that contains a high number of words. I want to take these in a list and find their frequency column by column in my data.
For example, my output is with frequencies in the whole data
ich 4
möchte 5
doner 3
und 2
ayran 6
and my columns are 2000, 2001, 2002, 2003. I want to find how many "ich","möchte","doner","und","ayran" are in those columns separately.
Please help me about taking this output as a list and find their frequencies, as I explained above. Please use R.
Your question is not so clear: we do not have any sample data frame to work on and the output you require is not clearly stated.
However, you could do something along these lines:
Do not hesitate to edit your question to make it clearer.
Taking into account zx8754's comment: