Description Usage Arguments Value Examples
Check for duplicates in a vector
1 | check_dups(x, name = "")
|
x |
the vector |
name |
the name of the object to print in an error message if duplicates are found |
silently returns NULL
1 2 3 4 5 | # this will throw an erorr, let's catch it
tryCatch(
check_dups(c("a", "b", "c", "a", "d")),
error=function(e) print(e)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.