Skip to content
Prev 86997 / 398502 Next

elements that appear only once

another approach is:

names(which(table(a) == 1))

but I don't know if you find this more elegant :)


Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://www.med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: "Robin Hankin" <r.hankin at noc.soton.ac.uk>
To: "RHelp" <r-help at stat.math.ethz.ch>
Sent: Wednesday, February 22, 2006 10:11 AM
Subject: [R] elements that appear only once
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm