powered by
A pipe-friendly wrapper around list[!(names(list) %in% names)] This function is slightly faster than using cmd_list_drop() to drop items by name.
list[!(names(list) %in% names)]
cmd_list_drop()
cmd_list_drop_named(list, names)
an R list
vector of names to drop
list removing items defined by names
# NOT RUN { cmd_list_drop_named(list("a" = 1, "b" = 2), "a") # }
Run the code above in your browser using DataLab