I am very new to R, so please do forgive me if this question has been asked before
This is my data set - https://www.kaggle.com/zynicide/wine-reviews
Inside this, there is a variable called country. I have made this variable into a category using
This gives me x = countries and freq. But I have 47 countries. I want only those whose frequency is above 1000.
wine$country <- as.factor(wine$country) countries <- wine$country count(countries) plot(countries, xlab = "Countries", ylab = "Frequency")
How do I select from
countries whose frequency is over 1000 and subset it into a new variable?