Skip to content

Instantly share code, notes, and snippets.

@jsaraviadrago
Last active August 6, 2019 19:03
Show Gist options
  • Save jsaraviadrago/103b253211629b943fc9021ac7a12c3d to your computer and use it in GitHub Desktop.
Save jsaraviadrago/103b253211629b943fc9021ac7a12c3d to your computer and use it in GitHub Desktop.
#### Función para generar lista de duplicados ####
lisdup <- function(x,y) {
# Generar un listado de los duplicados
n_occur <- data.frame(table(x$y))
n_occur[n_occur$Freq > 1,]
x[x$y %in% n_occur$Var1[n_occur$Freq > 1],]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment