Amor, You have the possibility to use the duplicated() function.
A[!duplicated(A[,var]),] Atenciosamente, Leandro Lins Marino Centro de Avaliação Fundação CESGRANRIO Rua Santa Alexandrina, 1011 - 2º andar Rio de Janeiro, RJ - CEP: 20261-903 R (21) 2103-9600 R.:236 ( (21) 8777-7907 ( lean...@cesgranrio.org.br "Aquele que suporta o peso da sociedade é precisamente aquele que obtém as menores vantagens". (SMITH, Adam) Antes de imprimir pense em sua responsabilidade e compromisso com o MEIO AMBIENTE -----Mensagem original----- De: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Em nome de amor Gandhi Enviada em: terça-feira, 12 de maio de 2009 09:30 Para: r-h...@stat.math.ethz.ch Assunto: [R] SAS PROC SORT nodupkey Hi, I have the following data and I would like to delete douple names, it is almost similar to SAS PROC SORT nodupkey! Is there any function in R does this? x1 <- rnorm(11,5,1) x2 <- runif(11,0,1) nam <-paste("A", c(1:4,4,5:9,9), sep=".") mydata <- data.frame(x1,x2) crownames(mydata) <- nam Many thanks in advance, Amor [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.