purrr: Functional Programming Tools

Make your pure functions purr with the 'purrr' package. This package completes R's functional programming tools with missing features present in other programming languages.

Author
Hadley Wickham [aut, cre], Lionel Henry [ctb], RStudio [cph]
Date of publication
2016-06-18 10:05:18
Maintainer
Hadley Wickham <hadley@rstudio.com>
License
GPL-3 | file LICENSE
Version
0.2.2
URLs

View on CRAN

Man pages

accumulate
Accumulate recursive folds across a list
along
Helper to create vectors with matching length.
array-coercion
Coerce array to list
as_function
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
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
compose
Compose multiple functions
conditional-map
Modify elements conditionally
contains
Does a list contain an object?
cross_n
Produce all combinations of list elements
detect
Find the value or position of the first match.
dmap
Map over the columns of a data frame
every
Do every or some elements of a list satisfy a predicate?
flatmap
Map a function and flatten the result by one-level
flatten
Flatten a list of lists into a simple vector.
get-attr
Infix attribute accessor
head_while
Find head/tail that all satisfies a predicate.
invoke
Invoke functions.
is_empty
Is a vector/list empty?
is_formula
Is a formula?
keep
Keep or discard elements using a predicate function.
lift
Lift the domain of a function
lmap
Apply a function to list-elements of a list
map
Apply a function to each element of a vector
map2
Map over multiple inputs simultaneously.
negate
Negate a predicate function.
null-default
Default value for 'NULL'.
partial
Partial apply a function, filling in some arguments.
pipe
Pipe operator
prepend
Prepend a vector
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...
rerun
Re-run expressions multiple times.
safely
Capture side effects.
scalar-type-predicates
Scalar type predicates
set_names
Set names in a vector
slice_rows
Slice a data frame into groups of rows
splice
Splice objects and lists of objects into a list
split_by
Split, order and sort lists by their components.
transpose
Transpose a list.
type-predicates
Type predicates
update_list
Modify a list
when
Match/validate a set of conditions for an object and continue...

Files in this package

purrr
purrr/tests
purrr/tests/testthat.R
purrr/tests/testthat
purrr/tests/testthat/test-objects.R
purrr/tests/testthat/test-output.R
purrr/tests/testthat/test-predicates.R
purrr/tests/testthat/test-cross.R
purrr/tests/testthat/test-partial.R
purrr/tests/testthat/test-map_n.R
purrr/tests/testthat/test-invoke.R
purrr/tests/testthat/test-recycle_args.R
purrr/tests/testthat/test-reduce.R
purrr/tests/testthat/test-as-function.R
purrr/tests/testthat/test-when.R
purrr/tests/testthat/test-dmap.R
purrr/tests/testthat/test-update-list.R
purrr/tests/testthat/test-rows.R
purrr/tests/testthat/test-simplify.R
purrr/tests/testthat/test-rerun.R
purrr/tests/testthat/test-transpose.R
purrr/tests/testthat/test-map2.R
purrr/tests/testthat/test-flatten.R
purrr/tests/testthat/test-map.R
purrr/src
purrr/src/Makevars
purrr/src/rows-formatter.cpp
purrr/src/fast-copy.cpp
purrr/src/rows.cpp
purrr/src/rows-data.h
purrr/src/vector.c
purrr/src/vector.h
purrr/src/rows-formatter.h
purrr/src/fast-copy.h
purrr/src/utils.h
purrr/src/utils.cpp
purrr/src/transpose.c
purrr/src/flatten.c
purrr/src/map.h
purrr/src/map.c
purrr/src/Makevars.win
purrr/src/extract.c
purrr/src/rows-data.cpp
purrr/NAMESPACE
purrr/NEWS.md
purrr/R
purrr/R/along.R
purrr/R/rerun.R
purrr/R/utils.R
purrr/R/map-vector.R
purrr/R/at-depth.R
purrr/R/dmap.R
purrr/R/output.R
purrr/R/reduce.R
purrr/R/find-position.R
purrr/R/head-tail.R
purrr/R/split_by.R
purrr/R/invoke.R
purrr/R/arrays.R
purrr/R/flatten.R
purrr/R/cross.R
purrr/R/map.R
purrr/R/partial.R
purrr/R/objects.R
purrr/R/composition.R
purrr/R/when.R
purrr/R/keep.R
purrr/R/coercion.R
purrr/R/rows.R
purrr/R/compose.R
purrr/R/set_names.R
purrr/R/negate.R
purrr/R/every-some.R
purrr/R/transpose.R
purrr/R/lmap.R
purrr/README.md
purrr/MD5
purrr/DESCRIPTION
purrr/man
purrr/man/pipe.Rd
purrr/man/compose.Rd
purrr/man/negate.Rd
purrr/man/rdunif.Rd
purrr/man/rerun.Rd
purrr/man/keep.Rd
purrr/man/map.Rd
purrr/man/splice.Rd
purrr/man/detect.Rd
purrr/man/set_names.Rd
purrr/man/prepend.Rd
purrr/man/slice_rows.Rd
purrr/man/safely.Rd
purrr/man/null-default.Rd
purrr/man/at_depth.Rd
purrr/man/update_list.Rd
purrr/man/partial.Rd
purrr/man/by_row.Rd
purrr/man/transpose.Rd
purrr/man/along.Rd
purrr/man/cross_n.Rd
purrr/man/invoke.Rd
purrr/man/by_slice.Rd
purrr/man/is_empty.Rd
purrr/man/flatten.Rd
purrr/man/split_by.Rd
purrr/man/lmap.Rd
purrr/man/rbernoulli.Rd
purrr/man/every.Rd
purrr/man/head_while.Rd
purrr/man/bare-type-predicates.Rd
purrr/man/when.Rd
purrr/man/map2.Rd
purrr/man/accumulate.Rd
purrr/man/dmap.Rd
purrr/man/lift.Rd
purrr/man/array-coercion.Rd
purrr/man/as_function.Rd
purrr/man/type-predicates.Rd
purrr/man/is_formula.Rd
purrr/man/contains.Rd
purrr/man/as_vector.Rd
purrr/man/conditional-map.Rd
purrr/man/reduce.Rd
purrr/man/get-attr.Rd
purrr/man/flatmap.Rd
purrr/man/scalar-type-predicates.Rd
purrr/LICENSE