paladini at beuth-hochschule.de
Tue Oct 16 14:45:37 CEST 2012
I've got a problem concerning the function unique. I have got a
data.frame "shopdata" with 1000 shop which were evaluated at different
points in time.
With function subset I chose those shops with more then 10 employee and
store it in data.frame "bigshopdata" with 700 shops.
Now I use unique(bigshopdata$name) to ensure that each shop name is
only listed ones and not two or three times because of an evaluation at
What happens is that unique eliminates also those shops names which
appear only ones in bigshopdata but twice or more often in shopdata.
But that is not what I want to. I'm only interessted in multiple
appearance in bigshopdata not in an possible multible appearance in the
How can I use unique to get what I want? Or is there an alternative
I hope I explained the problem good enought.
More information about the R-help