I have a dataset with large number of observations. The follow dataframe is just a smaller version of it. the dput output is given below
structure(list(Tags = c(1, 1, 3, 3, 3, 1), County = c("USA",
"UK", "USA", "UK", "USA", "UK")), row.names = c(NA, -6L), class = c("tbl_df",
"tbl", "data.frame"))
I want R to display the top 10 numbers that appear and the number of times they appear. Currently i am using the following code
table(Data$Tags)
While my dataset has a lot many observations than this one hence I want the top ten.