table(data[column])

will give you the number of items in each subgroup; that would be the
count you are after.

On 2/2/07, Johannes Graumann <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> given a data.frame 'data' I managed to filter out entries (rows) that are
> identical with respect to one column like so:
>
> duplicity <- duplicated(data[column])
> data_unique <- subset(data,duplicity!=TRUE)
>
> But I'm trying to extract how many duplicates each of the remaining rows
> had.
>
> Can someone please send me down the right path for this?
>
> Joh
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to