Skip to contents

remove keys from a list by name

Usage

remove_key_from_list(list, keys)

Arguments

list

A normal list

keys

A vector of keys to be removed from list

Value

list without the members of keys

Examples

list <- list(A = 1, B = "water", C = "0", D = 99)
duflor:::remove_key_from_list(list = list,c("C","D"))
#> $A
#> [1] 1
#> 
#> $B
#> [1] "water"
#>