powered by
Check if parsed variable is a unique identifier. This function was adapted from: Source: https://edwinth.github.io/blog/unique_id/
unique_id(x, ...)
Boolean whether variable is a unique identifier.
vector or dataframe.
optional variables, e.g. name of column or a vector of names.
unique_id(iris, Species) mtcars$name <- rownames(mtcars) unique_id(mtcars, name)
Run the code above in your browser using DataLab