| count_unique | R Documentation |
Count how many times each unique element in a vector is repeated
count_unique(..., sort = FALSE, useNA = "ifany")
... |
(Vectors) Vectors that will be concatenated together. |
sort |
(Logical) If |
useNA |
(Character) Include NAs in the result? Set to |
A dataframe with two columns: unique which lists the unique value, and
count which shows how many times that unique value appeared in ....
count_unique(sample(letters, size = 10, replace = TRUE))
#> unique count
#> 1 e 1
#> 2 g 1
#> 3 i 2
#> 4 m 1
#> 5 n 1
#> 6 o 1
#> 7 p 2
#> 8 y 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.