R: Modify a list

update_list {purrr} | R Documentation

## Modify a list

### Description

Modify a list

### Usage

    update_list(`_data`, ...)

### Arguments

`_data` | A list.
`...` | New values of a list. Use `NULL` to remove values. Use a formula to evaluate in the context of the list values.

### Examples

    x <- list(x = 1:10, y = 4)
    update_list(x, z = 10)
    update_list(x, z = ~ x + y)

[Package purrr version 0.2.2 Index]