I am using the function count() from the package plyr. Since this morning I receive an error when running the following code:
Arrivaltime <- cut(Export_2019_2$Arrival,
breaks = c(6.3, 6.45, 7, 7.15, 7.3, 7.45, 8),
labels = c("6:30-6:45", "6:45-7:00", "7:00-7:15", "7:15-7:30", "7:30-7:45", "7:45-8:00"))
The error is:
Error in UseMethod("group_vars") : no applicable method for 'group_vars' applied to an object of class "factor"
Can anyone please help me?

countandgroup_varsin your code. - Darren Tsai