modify

0th

Percentile

Modify a vector

This function merges a list of arguments into a vector. It always returns a list.

Usage
modify(.x, ...)
Arguments
.x

A vector to modify.

...

List of elements to merge into .x. Named elements already existing in .x are used as replacements. Elements that have new or no names are inserted at the end. These dots are evaluated with explicit splicing.

Value

A modified vector upcasted to a list.

Aliases
  • modify
Examples
# NOT RUN {
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))
# }
Documentation reproduced from package rlang, version 0.1.6, License: GPL-3

Community examples

Looks like there are no examples yet.