Posts by Davi Mittelstadt • 56 points
1 post
-
4
votes1
answer1261
viewsA: Remove duplicate cases and keep specific values from another variable
One simple way to solve is by using the package dplyr, of tidyverse: new_dataset <- dataset %>% arrange(date) %>% distinct(CPFs, .keep_all = TRUE) Please note that dates need to be…
ranswered Davi Mittelstadt 56