powered by
Removes duplicate rows based on state columns (V1, V2, ..., Vn).
select_unique(df)
Data frame with unique states
Data frame
df <- data.frame(V1 = c(1, 1, 2), V2 = c(2, 2, 1), op = c("a", "b", "c")) select_unique(df)
Run the code above in your browser using DataLab