View source: R/misc_duplicated_by_names.R
misc_duplicated_by_names | R Documentation |
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, ...)
object |
An R object that has names. |
... |
Named arguments passed on to |
Returns a logical vector of length(object)
with TRUE
indicating
the identified items with duplicated names.
base::duplicated()
misc_duplicated_by_names(list(a = 1, a = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.