This function takes two names lists or two named vectors and replaces all value with a bespoke specification with that bespoke specification.

override(default, bespoke)

Arguments

default

The default values

bespoke

The bespoke alternatives

Value

A vector that is the union of default and bespoke, but for all elements that occur in both, the version from bespoke.

Examples

override(
  default = c(a = "banana",
              b = "grape",
              c = "pineapple"),
  bespoke = c(b = "peach",
              c = "apple")
);
#>        a        b        c                   
#> "banana"  "peach"  "apple"  "peach"  "apple"