Remove duplicates and keep last in R
Here is how to remove duplicates but keep the last row in the R data frame. Here is my data frame that contains agents and managers. Let’s say the last one is that I would like to get. df <- data.frame( agent = as.character(c(“David”, “David”, “David”, “Kate”, “Kate”, “Alma”, “Alma”)), manager = as.character(c(“Lisa”, “Monica”, “Karl”, … Continue reading Remove duplicates and keep last in R
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed