powered by
Combine two frequently used function together to return the length of the unique items of a vector
unique_len(.)
length of the unique items in a vector
object such as vector or names(dataframe)
frenchnames1 = c("Léa","Obinna","Bastien","Léa","Obinna", "Hugo", "Amélie","Louis") unique_len(frenchnames1)
Run the code above in your browser using DataLab