Add elements to a vector, only if names are not duplicated in x
and
values
append_no_duplicate_names.Rd
Add elements to a vector, only if names are not duplicated in x
and
values
Usage
append_no_duplicate_names(
x,
values,
after = length(x),
ignore_blank = TRUE,
method = stop
)
Arguments
- x, values, after
See
base::append
- ignore_blank
Ignore blank names? (Blank names
""
occur when an unnamed vector is appeneded to a named vector.)- method
Function to notify the user if a duplicate is provided? It is called with a message indicating the name of the duplicate. Typically this will be
stop
orwarning
.
Value
See base::append