Learn R Programming

listr (version 0.1.0)

list_remove: Remove elements from a list.

Description

Remove elements from a list.

Usage

list_remove(in_list, ...)

Value

The list with the specified elements removed.

Arguments

in_list

The list to remove elements from.

...

Names or numeric positions of elements to remove.

Examples

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

Run the code above in your browser using DataLab