forked from tidyverse/purrr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_pkgdown.yml
101 lines (88 loc) · 2.4 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
89
90
91
92
93
94
95
96
97
98
99
100
101
url: https://purrr.tidyverse.org
template:
package: tidytemplate
bootstrap: 5
includes:
in_header: |
<script defer data-domain="purrr.tidyverse.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
development:
mode: auto
home:
links:
- text: Learn more
href: http://r4ds.had.co.nz/iteration.html
news:
releases:
- text: "Version 0.3.0"
href: https://www.tidyverse.org/articles/2019/02/purrr-0-3-0/
- text: "Version 0.2.3"
href: https://www.tidyverse.org/articles/2017/08/purrr-0.2.3/
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))`.
contents:
- map_if
- map2
- pmap
- modify
- imap
- lmap
- 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
- title: Plucking
desc: >
Getting or setting a single element.
contents:
- pluck
- pluck_depth
- modify_in
- attr_getter
- title: Other vector transforms
desc: >
A grab bag of useful tools for manipulating vectors.
contents:
- accumulate
- flatten
- list_modify
- reduce
- transpose
- title: Adverbs
desc: >
Adverbs modify the action of a function; they take a function as input and
return a function with modified action as output.
contents:
- has_concept("adverbs")
- title: Misc
contents:
- array_tree
- as_vector
- rbernoulli
- rate-helpers
- rdunif
- prepend