data-utils | R Documentation |
Data Manipulation Utilities
Pull Unique Values from a dataframe
pull_unique(df, var)
df |
a provided |
var |
character/numeric - quoted named of a variable from |
pull_unique
returns a character vector of unique, sorted values from specified column
df <- data.frame(let = rep(letters, 2), num = rep(c(1:26), 2))
pull_unique(df, 1)
pull_unique(df, "num")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.