powered by
Miscellaneous helper function to detect items in an object with duplicated names, e.g. in named vectors or named lists.
misc_duplicated_by_names(object, ...)
Returns a logical vector of length(object) with TRUE indicating the identified items with duplicated names.
length(object)
TRUE
An R object that has names.
Named arguments passed on to duplicated.
duplicated
base::duplicated()
misc_duplicated_by_names(list(a = 1, a = 1))
Run the code above in your browser using DataLab