Having a dataframe:
dframe <- data.frame(id = c(1,2,3,2,2), name = c("Google","Google","Google","Amazon","Google"))
How is it possible to check both columns in the same time and remove duplicates
Example output
data.frame(id = c(1,3,2,2), name = c("Google","Google","Amazon","Google"))
What I tried
dframe[!duplicated(dframe ["id", "name"]), ]