list_remove: Remove elements from a list.

View source: R/list_remove.R

list_removeR Documentation

Remove elements from a list.

Description

Remove elements from a list.

Usage

list_remove(in_list, ...)

Arguments

in_list

The list to remove elements from.

...

Names or numeric positions of elements to remove.

Value

The list with the specified elements removed.

Examples

my_list <- list(a = rnorm(10), b = rnorm(10), c = rnorm(10))
list_remove(my_list, b)

listr documentation built on Oct. 6, 2022, 5:11 p.m.