Skip to content

Instantly share code, notes, and snippets.

@PietrH
Created June 25, 2019 11:58
Show Gist options
  • Save PietrH/0b06b4e5842f820aedf76dbc7bf6eb3a to your computer and use it in GitHub Desktop.
Save PietrH/0b06b4e5842f820aedf76dbc7bf6eb3a to your computer and use it in GitHub Desktop.
Keep only distinct rows of a single column in a dataframe in R, but return all columns of these rows
library(dplyr)
distinct(DataFrame,Column_To_Filter_On,.keep_all = TRUE) %>%
view('Dataframe distinct')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment