I was using "count" to summarize the column of a dataframe. The column (dataset$Nationality) consists of nationalities that can occur more than once (eg. Swiss, German, French, Swiss, etc.). It worked fine, until it today suddenly produced an error message:
Error in UseMethod("groups") : no applicable method for 'groups' applied to an object of class "character".
I reinstalled dplyr but it still did not work.
For example:
dataset$Nationality consists of c("Swiss", "French","German","Swiss")
then
count(dataset$Nationality)
would give something like
Swiss,2, French, 1, German,1
Can somebody tell me what I could do to make it work again?
Thanks a lot!
countbecount(dataset, Nationality)? - aosmith