I just started using R some days ago. For a data analysis I stumbled over the following problem:
I have several rows and columns of data. I am interested in the column A. There are some rows with same values in the column A. If there are 10 or more rows with same values, I want to keep them. The other rows I don't want to use in further analysis.
What I wrote so far:
subset(table(data$A),table(data$A)>=10, drop=FALSE)
Problem: It doesn't really work. I end up with the deleted rows appearing again when I aggregate and group them in the end. Also other columns drop out somehow.
Sorry for writing absolutely not technical.
Any Ideas?