Message-ID: <403372.1277.1302276150222.JavaMail.geo-discussion-forums@yqkr15>
Date: 2011-04-08T15:22:30Z
From: Jeremy Hetzel
Subject: Removing not duplicated rows
In-Reply-To: <1302275240678-3436600.post@n4.nabble.com>
As I understand it, you are trying to subset the data frame to include only
rows with a non-unique id.
Try this:
x <- data.frame(cbind(id=c(1,2,2,2,3,3,4,5,6,6), value=1:10))
id.table <- table(x$id)
x_new <- subset(x, id %in% id.table[id.table > 1])
Jeremy