Suppose I want to calculate the proportion of different values within each group. For example, using the mtcars data, how do I calculate the relative frequency of number of...
I need to find the frequency of elements in an unordered list a = [1,1,1,1,2,2,2,2,3,3,4,5,5] output-> b = [4,4,2,1,2] Also I want to remove the duplicates from a a...
I have a dataset category cat a cat b cat a I’d like to be able to return something like (showing unique values and frequency) category freq cat a...