Rudi Alberts <[EMAIL PROTECTED]> writes:

> something like this, however, this gives me the complete df.
> 
> df[df$colname %in% unique(df$colname),]
> 
> or this, which doesnt work
> 
> df[df$colname == unique(df$colname),]


 df[!duplicated(df$colname),]


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to