I am analyzing a spreadsheet of 181,000+ user actions and am interested to know how many actions each user performed. I want R to show me how many times a particular user's name appears, ranked from highest to lowest, so that I can focus on the users performing the most actions (we are not really interested in users that perform, say, ten actions, when our most active user performed 101,554 in the past week). I have created the character vector new.variable.v to select the "screen_name" column of the spreadsheet, and
table(table(new.variable.v))
shows me counts, but not screen names. Every other solution I've read seems geared to identifying the number of times a particular instance occurs, whereas I want to know the number of times each different screen name occurs. A more R-adept friend suggested some other things, copied from my console with their error messages:
new.variable.sort[order(new.variable.sort[,2], decreasing=TRUE),]
Error in
[.default
(new.variable.sort, , 2) : incorrect number of dimensions
new.variable.order <- count(new.variable.v)
Error in UseMethod("group_by_") : no applicable method for 'group_by_' applied to an object of class "character"
count(new.variable.v, x) %>%
arrange(desc(n))
Error in UseMethod("group_by_") : no applicable method for 'group_by_' applied to an object of class "character"
I've googled these errors and read some other Stack Overflow entries about them, but I have not been able to produce a successful outcome.