R question, how can I count the number of duplicate rows?

How do I count the number of cases with duplicative rows?

Example:

Name1 Name 2 x1 x2 x3

john smith 1 4 2

John smith 3 4 1

mary smith 4 2 4

ed wade       4 2 5

In this case the first two cases are duplicative rows.

 

Leave a Reply