Description Usage Arguments Value Examples
View source: R/collapse_functions.R
collapse_unique
1 | collapse_unique(x, collapse_character = "_")
|
x |
a numeric or a character vector |
collapse_character |
character to put in the collapse argument of paste function |
a double equals to the sum of unique values of x or a character made by collapsing unique characters of x
1 2 | collapse_unique(c(3,2,2))
collapse_unique(c("a", "a", "b"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.