So, those companies had the most, best ratings. Which had the most ratings? We can use a similar script to determine the most rated firms:
#which places have most ratings library(sqldf) most_ratings = sqldf("select business_id, count(*) from reviews group by business_id order by 2 desc") head(most_ratings)
In this script we do not qualify the rating in order to determine its membership resulting in the set:
So, similarly we see a small number of firms with many more ratings than average. Also, the names are mangled, but we do see four of the top-rated firms also being included in the most rated at all list.