Fill names for a vector of strings with the vector's values

Fill names for a vector of strings with the vector's values

fill_names(nm)

Arguments

nm

Vector of strings with possibly incomplete names

Value

Named vector of strings

See also

Examples

nm <- c("a", "e" = "a", "d" = "b", "b" ="d") fill_names(nm)
#> a e d b #> "a" "a" "b" "d"