[R] About duplicates

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Apr 18 19:56:51 CEST 2002


On Thu, 18 Apr 2002, Yu-Yun Chen wrote:

> I am learning R and found it interesting and useful. However, I have
a problem here. If I got duplicates in my dataframe, how can I get rid of
those rows? I couldn't find a suitable function for that. In SAS,
the internal code will help. How about R? Thanks for your attention.

?dupicated and ?unique should help.  They do have methods for data frames
(in the current version of R).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list