[R] Finding (swapped) repetitions of numbers pairs across two columns

Emmanuel Levy emmanuel.levy at gmail.com
Thu Dec 27 21:48:40 CET 2012


I did not know that unique worked on entire rows!

That is great, thank you very much!

Emmanuel


On 27 December 2012 22:39, Marc Schwartz <marc_schwartz at me.com> wrote:
> unique(t(apply(cbind(v1, v2), 1, sort)))




More information about the R-help mailing list