I've got a column A, which has several values, some of them repeating. So, example: A = c(5, 9, 6, 5, 5). I need to go through A and count the frequencies of each of the values in A. So, for this example, for the set of 5s in A, there are 3 occurancies of 5s. I need to save these frequencies so I can use them in another calculation. By the way, I have several other variables in this dataset.
How do I do this? Thanks.