Skip to content
Prev 314266 / 398506 Next

Finding (swapped) repetitions of numbers pairs across two columns

Yep. There are methods for:
[1] unique.array           unique.data.frame      unique.default        
[4] unique.matrix          unique.numeric_version unique.POSIXlt   

and for the matrix and data.frame methods, unique rows will be returned by default. For array and matrix objects, you can change the MARGIN argument to a different value (eg. 2 for columns, etc.).

See ?unique for more information, notably the Details and Value sections.

Marc
On Dec 27, 2012, at 2:48 PM, Emmanuel Levy <emmanuel.levy at gmail.com> wrote: