SyntaxFix
Write A Post
Hire A Developer
Questions
Using unique():
unique()
dat <- data.frame(id=c(1,1,3),id2=c(1,1,4),somevalue=c("x","y","z")) dat[row.names(unique(dat[,c("id", "id2")])),]