Assigned names to a vector
vec_names.RdAssigned names to a vector
Details
If nm = NULL, the names are the value of the vector (for the unnamed element.). vec_names is different from rlang::set_names: each each element of x, it assigns the values of x as its name when its names(x) is missing (values is "").