I have a data below
test=data.frame("name"=c("A","A","A","A","B","B","C"), value=c(10,11,12,13,14,15,16))
I want to subset the test data based on non-repeated name "C", I want to show the data below:
name value
c 16
I try test[table(test$name)>1,]
, but the output was wrong.
Please give me some hint, thanks!!