Higher-order functions for dealing with lists
These functions were inspired by underscore.js.
1 2 3 4 5 6 7
the name of a value in a list
a list of lists
a character vector of names in a list
pluck: Pluck a named value from a list
pick: Simplify a list by picking out whitelisted names
The simple versions of
pick are curried functions,
meaning that they return a function which can be applied to a list. See the
syntax in the usage section.
pluck returns an unnamed value and
a list of unnamed values.
pick returns a simplified version of the
pick_apply returns a list of simplified lists.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.