modify {rlang} | R Documentation |
This function merges a list of arguments into a vector. It always returns a list.
modify(.x, ...)
.x |
A vector to modify. |
... |
List of elements to merge into |
A modified vector upcasted to a list.
modify()
is experimental, expect API changes. We are still
figuring out what vector tools belong in rlang.
modify(c(1, b = 2, 3), 4, b = "foo") x <- list(a = 1, b = 2) y <- list(b = 3, c = 4) modify(x, splice(y))