View source: R/purrr_custom_functions.R
huck | R Documentation |
Opposite of
purrr::pluck()
. Returns the original list without the element.
huck(.data, ...)
.data |
a named list |
... |
Unquoted variable names to search for duplicates. This takes a tidyselect specification (starts_with, contains, ends_with, etc). |
obj1 <- list("a", list(1, elt = "foo"))
obj2 <- list("b", list(2, elt = "bar"))
x <- list(a = obj1, b = obj2)
x %>% huck(a)
x %>% huck(starts_with("a"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.