Functional Programming Tools
Accumulate intermediate results of a vector reduction
Create a list of given length
Coerce array to list
Convert an object into a mapper function
Coerce a list to a vector
Map at depth
Create an attribute getter function
Wrap a function so it will automatically browse()
on error
Get an element deep within a nested data structure, failing if it does...
Compose multiple functions together to create a new function
Produce all combinations of list elements
Find the value or position of the first match
Do every, some, or none of the elements of a list satisfy a predicate?
Best practices for exporting adverb-wrapped functions
Flatten a list of lists into a simple vector
Infix attribute accessor
Does a list contain an object?
Find head/tail that all satisfies a predicate.
Apply a function to each element of a vector, and its index
Parallelization in purrr
Transform a function to wait then retry after an error
Invoke functions.
Keep/discard elements based on their name/position
Keep/discard elements based on their values
Lift the domain of a function
Modify a list
Combine list elements into a single data structure
Flatten a list
Simplify a list to an atomic or S3 vector
Transpose a list
Apply a function to list-elements of a list
Map/modify elements at given depth
Functions that return data frames
Apply a function to each element of a vector conditionally
Functions that return raw vectors
Apply a function to each element of a vector
Map over two inputs
Modify a pluck location
Recursively modify a list
Modify elements selectively
Negate a predicate function so it selects what it previously rejected
Partially apply a function, filling in some arguments
Pipe operator
Compute the depth of a vector
Safely get or set an element deep within a nested data structure
Map over multiple input simultaneously (in "parallel")
Wrap a function to return a value instead of an error
Prepend a vector
Progress bars in purrr
Indexed errors (purrr_error_indexed
)
purrr: Functional Programming Tools
Wrap a function to capture side-effects
Wait for a given time
Create delaying rate settings
Generate random sample from a Bernoulli distribution
Generate random sample from a discrete uniform distribution
Reduce from the right (retired)
Reduce a list to a single value by iteratively applying a binary funct...
Objects exported from other packages
Re-run expressions multiple times
Wrap a function to capture errors
Wrap a function to wait between executions
Splice objects and lists of objects into a list
Transpose a list.
Update a list with formulas
Match/validate a set of conditions for an object and continue with the...
A complete and consistent functional programming toolkit for R.
Useful links