Skip to contents

Remove Duplicated Values from a Vector

Usage

removeDuplicates(x, dbg = TRUE)

Arguments

x

vector from which to remove duplicates

dbg

if TRUE a debug message is shown

Value

x with duplicated values being removed

Examples

removeDuplicates(c(1, 1, 2, 3, 4, 4))
#> Checking for duplicates in 'c(1, 1, 2, 3, 4, 4)' ... ok. (0.00 secs) 
#> Removing 2 duplicate(s) ... ok. (0.00 secs) 
#> [1] 1 2 3 4