forked from tidyverse/purrr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_pkgdown.yml
88 lines (79 loc) · 2.07 KB
/
_pkgdown.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
template:
package: tidytemplate
default_assets: false
home:
strip_header: true
links:
- text: Learn more
href: http://r4ds.had.co.nz/iteration.html
reference:
- title: Map family
desc: |
The `map(.x, .f)` functions transforms each element of the vector `.x` with
the function `.f`, returning a vector defined by the suffix (`_lgl`,
`_chr()` etc). `walk()` is a variant for functions called primarily for
their side-effects; it returns `.x` invisibly.
As well as functions, `.f`, can take numbers and characters (used as a
shorthand for `[[`), and formulas (used as a succint function definition).
See details in `as_mapper()`
contents:
- map
- as_mapper
- title: Map variants
desc: >
A rich set of variants builds on the basic idea of `map()`:
`modify()` modifies "in place", returning a vector the same type as `.x`;
`map2()` iterates over two vectors in parallel;
`pmap()` (parallel map) iterates over a list of vectors;
`imap()` (index map) is a shortcut for the common pattern `map2(x, names(x))`;
`invoke()` calls each function in a list.
contents:
- map2
- starts_with("modify")
- starts_with("imap")
- starts_with("lmap")
- starts_with("invoke")
- title: Predicate functionals
desc: >
A predicate function is a function that either returns `TRUE` or `FALSE`.
The predicate functionals take a vector and a predicate function and do
something useful.
contents:
- detect
- every
- has_element
- head_while
- keep
- negate
- prepend
- title: Other vector transforms
desc: >
A grab bag of useful tools for manipulating vectors.
contents:
- accumulate
- cross
- flatten
- list_modify
- reduce
- splice
- transpose
- title: Adverbs
desc: >
Adverbs modify the action of a function; taking a function as input and
returning a function with modified action as output.
contents:
- compose
- lift
- negate
- partial
- safely
- title: Misc
contents:
- "`%||%`"
- array_tree
- as_vector
- depth
- rbernoulli
- rdunif
- rerun
- set_names