Functional Programming Tools


[Up] [Top]

Documentation for package ‘purrr’ version 0.3.4

Help Pages

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

-- A --

accumulate Accumulate intermediate results of a vector reduction
accumulate2 Accumulate intermediate results of a vector reduction
array-coercion Coerce array to list
array_branch Coerce array to list
array_tree Coerce array to list
assign_in Modify a pluck location
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
attr_getter Create an attribute getter function
auto_browse Capture side effects.

-- C --

chuck Pluck or chuck a single element from a vector or environment
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.
done Done box

-- E --

every Do every, some, or none of the elements of a list satisfy a predicate?
exec Execute a function

-- F --

faq-adverbs-export Best practices for exporting adverb-wrapped functions
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.
flatten_raw Flatten a list of lists into a simple vector.

-- 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
imap_raw Apply a function to each element of a vector, and its index
imodify Modify elements selectively
insistently Transform a function to make it run insistently or slowly
is_rate Create delaying rate settings
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 list or atomic 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.
map2_raw Map over multiple inputs simultaneously.
map_at Apply a function to each element of a vector conditionally
map_chr Apply a function to each element of a list or atomic vector
map_dbl Apply a function to each element of a list or atomic vector
map_depth Apply a function to each element of a vector conditionally
map_df Apply a function to each element of a list or atomic vector
map_dfc Apply a function to each element of a list or atomic vector
map_dfr Apply a function to each element of a list or atomic vector
map_if Apply a function to each element of a vector conditionally
map_int Apply a function to each element of a list or atomic vector
map_lgl Apply a function to each element of a list or atomic vector
map_raw Apply a function to each element of a list or atomic vector
modify Modify elements selectively
modify.default Modify elements selectively
modify2 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
modify_in Modify a pluck location

-- N --

negate Negate a predicate function.
none Do every, some, or none of the elements of a list satisfy a predicate?
null-default Default value for 'NULL'

-- P --

partial Partial apply a function, filling in some arguments.
pluck Pluck or chuck a single element from a vector or environment
pluck<- Pluck or chuck a single element from a vector or environment
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.
pmap_raw 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 --

rate-helpers Create delaying rate settings
rate_backoff Create delaying rate settings
rate_delay Create delaying rate settings
rate_reset Wait for a given time
rate_sleep Wait for a given time
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
rep_along Repeat a value with matching length
rerun Re-run expressions multiple times.

-- S --

safely Capture side effects.
set_names Set names in a vector
simplify Coerce a list to a vector
simplify_all Coerce a list to a vector
slowly Transform a function to make it run insistently or slowly
some Do every, some, or none of the 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 list or atomic vector
walk2 Map over multiple inputs simultaneously.

-- Z --

zap Zap an element

-- misc --

%||% Default value for 'NULL'