unique_id | R Documentation |
Check if parsed variable is a unique identifier. This function was adapted from: Source: https://edwinth.github.io/blog/unique_id/
unique_id(x, ...)
x |
vector or dataframe. |
... |
optional variables, e.g. name of column or a vector of names. |
Boolean whether variable is a unique identifier.
unique_id(iris, Species)
mtcars$name <- rownames(mtcars)
unique_id(mtcars, name)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.