Functional Programming Tools


[Up] [Top]

Documentation for package ‘purrr’ version 0.2.5

Help Pages

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

-- A --

accumulate Accumulate recursive folds across a list
accumulate_right Accumulate recursive folds across a list
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 mapper function
as_mapper Convert an object into a mapper function
as_mapper.character Convert an object into a mapper function
as_mapper.list Convert an object into a mapper function
as_mapper.numeric Convert an object into a mapper function
as_vector Coerce a list to a vector
at_depth Modify elements selectively
auto_browse Capture side effects.

-- C --

compact Keep or discard elements using a predicate function.
compose Compose multiple functions
cross Produce all combinations of list elements
cross2 Produce all combinations of list elements
cross3 Produce all combinations of list elements
cross_d Produce all combinations of list elements
cross_df 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.

-- 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_dfc Flatten a list of lists into a simple vector.
flatten_dfr 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 --

has_element Does a list contain an object?
head_while Find head/tail that all satisfies a predicate.

-- I --

imap Apply a function to each element of a vector, and its index
imap_chr Apply a function to each element of a vector, and its index
imap_dbl Apply a function to each element of a vector, and its index
imap_dfc Apply a function to each element of a vector, and its index
imap_dfr Apply a function to each element of a vector, and its index
imap_int Apply a function to each element of a vector, and its index
imap_lgl Apply a function to each element of a vector, and its index
invoke Invoke functions.
invoke_map Invoke functions.
invoke_map_chr Invoke functions.
invoke_map_dbl Invoke functions.
invoke_map_df Invoke functions.
invoke_map_dfc Invoke functions.
invoke_map_dfr Invoke functions.
invoke_map_int Invoke functions.
invoke_map_lgl Invoke functions.
iwalk Apply a function to each element of a vector, and its index

-- 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_merge Modify a list
list_modify Modify a list
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_dfc Map over multiple inputs simultaneously.
map2_dfr Map over multiple inputs simultaneously.
map2_int Map over multiple inputs simultaneously.
map2_lgl Map over multiple inputs simultaneously.
map_at Apply a function to each element of a vector
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_dfc Apply a function to each element of a vector
map_dfr Apply a function to each element of a vector
map_if Apply a function to each element of a vector
map_int Apply a function to each element of a vector
map_lgl Apply a function to each element of a vector
modify Modify elements selectively
modify.default Modify elements selectively
modify_at Modify elements selectively
modify_at.default Modify elements selectively
modify_depth Modify elements selectively
modify_depth.default Modify elements selectively
modify_if Modify elements selectively
modify_if.default Modify elements selectively

-- N --

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

-- 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_dfc Map over multiple inputs simultaneously.
pmap_dfr 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 sample from a Bernoulli distribution
rdunif Generate random sample from a discrete uniform distribution
reduce Reduce a list to a single value by iteratively applying a binary function.
reduce2 Reduce a list to a single value by iteratively applying a binary function.
reduce2_right 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.
rerun Re-run expressions multiple times.

-- S --

safely Capture side effects.
simplify Coerce a list to a vector
simplify_all Coerce a list to a vector
some Do every or some elements of a list satisfy a predicate?
splice Splice objects and lists of objects into a list

-- T --

tail_while Find head/tail that all satisfies a predicate.
transpose Transpose a list.

-- U --

update_list Modify a list

-- V --

vec_depth Compute the depth of a vector

-- W --

walk Apply a function to each element of a vector
walk2 Map over multiple inputs simultaneously.

-- misc --

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