R: Functional Programming Tools

# Functional Programming Tools

## Documentation for package ‘purrr’ version 0.2.2

- DESCRIPTION file.

## Help Pages

A B C D E F G H I K L M N O P Q R S T U W Z misc

## -- A --

accumulate | Accumulate recursive folds across a list
accumulate_right | Accumulate recursive folds across a list
along | Helper to create vectors with matching length.
array-coercion | Coerce array to list
array_branch | Coerce array to list
array_tree | Coerce array to list
as_function | Convert an object into a function.
as_function.character | Convert an object into a function.
as_vector | Coerce a list to a vector
at_depth | Map a function over lower levels of a nested list

## -- B --

bare-type-predicates | Bare type predicates
by_row | Apply a function to each row of a data frame
by_slice | Apply a function to slices of a data frame

## -- C --

compact | Keep or discard elements using a predicate function.
compose | Compose multiple functions
conditional-map | Modify elements conditionally
contains | Does a list contain an object?
cross2 | Produce all combinations of list elements
cross3 | Produce all combinations of list elements
cross_d | Produce all combinations of list elements
cross_n | Produce all combinations of list elements

## -- D --

detect | Find the value or position of the first match.
detect_index | Find the value or position of the first match.
discard | Keep or discard elements using a predicate function.
dmap | Map over the columns of a data frame
dmap_at | Map over the columns of a data frame
dmap_if | Map over the columns of a data frame

## -- E --

every | Do every or some elements of a list satisfy a predicate?

## -- F --

flatten | Flatten a list of lists into a simple vector.
flatten_chr | Flatten a list of lists into a simple vector.
flatten_dbl | Flatten a list of lists into a simple vector.
flatten_df | Flatten a list of lists into a simple vector.
flatten_int | Flatten a list of lists into a simple vector.
flatten_lgl | Flatten a list of lists into a simple vector.

## -- G --

get-attr | Infix attribute accessor

## -- H --

head_while | Find head/tail that all satisfies a predicate.

## -- I --

invoke | Invoke functions.
invoke_map | Invoke functions.
invoke_map_chr | Invoke functions.
invoke_map_dbl | Invoke functions.
invoke_map_df | Invoke functions.
invoke_map_int | Invoke functions.
invoke_map_lgl | Invoke functions.
invoke_rows | Apply a function to each row of a data frame
is_atomic | Type predicates
is_bare_atomic | Bare type predicates
is_bare_character | Bare type predicates
is_bare_double | Bare type predicates
is_bare_integer | Bare type predicates
is_bare_list | Bare type predicates
is_bare_logical | Bare type predicates
is_bare_numeric | Bare type predicates
is_bare_vector | Bare type predicates
is_character | Type predicates
is_double | Type predicates
is_empty | Is a vector/list empty?
is_formula | Is a formula?
is_function | Type predicates
is_integer | Type predicates
is_list | Type predicates
is_logical | Type predicates
is_null | Type predicates
is_numeric | Type predicates
is_scalar_atomic | Scalar type predicates
is_scalar_character | Scalar type predicates
is_scalar_double | Scalar type predicates
is_scalar_integer | Scalar type predicates
is_scalar_list | Scalar type predicates
is_scalar_logical | Scalar type predicates
is_scalar_numeric | Scalar type predicates
is_scalar_vector | Scalar type predicates
is_vector | Type predicates

## -- K --

keep | Keep or discard elements using a predicate function.

## -- L --

lift | Lift the domain of a function
lift_dl | Lift the domain of a function
lift_dv | Lift the domain of a function
lift_ld | Lift the domain of a function
lift_lv | Lift the domain of a function
lift_vd | Lift the domain of a function
lift_vl | Lift the domain of a function
list_along | Helper to create vectors with matching length.
lmap | Apply a function to list-elements of a list
lmap_at | Apply a function to list-elements of a list
lmap_if | Apply a function to list-elements of a list

## -- M --

map | Apply a function to each element of a vector
map2 | Map over multiple inputs simultaneously.
map2_chr | Map over multiple inputs simultaneously.
map2_dbl | Map over multiple inputs simultaneously.
map2_df | Map over multiple inputs simultaneously.
map2_int | Map over multiple inputs simultaneously.
map2_lgl | Map over multiple inputs simultaneously.
map3 | Map over multiple inputs simultaneously.
map_at | Modify elements conditionally
map_call | Invoke functions.
map_chr | Apply a function to each element of a vector
map_dbl | Apply a function to each element of a vector
map_df | Apply a function to each element of a vector
map_if | Modify elements conditionally
map_int | Apply a function to each element of a vector
map_lgl | Apply a function to each element of a vector
map_n | Map over multiple inputs simultaneously.
map_rows | Apply a function to each row of a data frame

## -- N --

negate | Negate a predicate function.
null-default | Default value for 'NULL'.

## -- O --

order_by | Split, order and sort lists by their components.

## -- P --

partial | Partial apply a function, filling in some arguments.
pmap | Map over multiple inputs simultaneously.
pmap_chr | Map over multiple inputs simultaneously.
pmap_dbl | Map over multiple inputs simultaneously.
pmap_df | Map over multiple inputs simultaneously.
pmap_int | Map over multiple inputs simultaneously.
pmap_lgl | Map over multiple inputs simultaneously.
possibly | Capture side effects.
prepend | Prepend a vector
pwalk | Map over multiple inputs simultaneously.

## -- Q --

quietly | Capture side effects.

## -- R --

rbernoulli | Generate random samples from a Bernoulli distribution
rdunif | Generate random samples from a discrete uniform distribution
reduce | Reduce a list to a single value by iteratively applying a binary function.
reduce_right | Reduce a list to a single value by iteratively applying a binary function.
rep_along | Helper to create vectors with matching length.
rerun | Re-run expressions multiple times.

## -- S --

safely | Capture side effects.
scalar-type-predicates | Scalar type predicates
set_names | Set names in a vector
simplify | Coerce a list to a vector
simplify_all | Coerce a list to a vector
slice_rows | Slice a data frame into groups of rows
some | Do every or some elements of a list satisfy a predicate?
sort_by | Split, order and sort lists by their components.
splice | Splice objects and lists of objects into a list
split_by | Split, order and sort lists by their components.

## -- T --

tail_while | Find head/tail that all satisfies a predicate.
transpose | Transpose a list.
type-predicates | Type predicates

## -- U --

unslice | Slice a data frame into groups of rows
update_list | Modify a list

## -- W --

walk | Apply a function to each element of a vector
walk2 | Map over multiple inputs simultaneously.
walk3 | Map over multiple inputs simultaneously.
walk_n | Map over multiple inputs simultaneously.
when | Match/validate a set of conditions for an object and continue with the action associated with the first valid match.

## -- Z --

zip2 | Transpose a list.
zip3 | Transpose a list.
zip_n | Transpose a list.

## -- misc --

%@% | Infix attribute accessor
%||% | Default value for 'NULL'.