For each column in a data.frame, map_unique()
shows the number of unique
values and, optionally, the values themselves.
1 | map_unique(df, vals = "as_string", sep = " | ", ignore_NA = TRUE)
|
df |
a data.frame |
vals |
a string describing how to display unique values; one of:
|
sep |
a character string to separate the values; used with "as_string" |
ignore_NA |
logical; whether to include missing ( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.