View source: R/remove_duplicates.R
remove_duplicates | R Documentation |
Turns duplicate rows into NAs
remove_duplicates(x, keepLast = FALSE)
x |
Character vector |
keepLast |
Logical indicating whether the last incidence should be kept instead of the first (which is the default). |
A character string/vector
x <- c(rep("a", 5), rep("c", 2), rep("y", 7))
remove_duplicates(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.