-
Notifications
You must be signed in to change notification settings - Fork 12
/
_pkgdown.yml
68 lines (60 loc) · 2.22 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
url: https://slider.r-lib.org
template:
package: tidytemplate
bootstrap: 5
includes:
in_header: |
<script defer data-domain="slider.r-lib.org,all.tidyverse.org" src="https://plausible.io/js/plausible.js"></script>
development:
mode: auto
reference:
- title: Slide family
desc: |
The `slide(.x, .f)` functions are similar to `purrr::map(.x, .f)`. Both
iterate over `.x`, applying `.f` as they go. The difference is that
`slide()` moves over `.x` in sliding windows, rather than one element at
a time. The return value size is always the same size as `.x`, and the
type is defined by the function suffix.
contents:
- slide
- slide2
- summary-slide
- title: Slide index family
desc: |
These functions iterate over `.x` using sliding windows defined with a
secondary index vector, `.i`. The windows are constructed by "looking back"
and "looking forward" a certain number of periods from each element of `.i`.
This is useful for constructing irregular sliding windows, such as sliding
with a look back period of two months when you have daily data. In that
example, not all months have the same number of days, and some months might
be missing data, so a fixed window size wouldn't be useful.
contents:
- slide_index
- slide_index2
- summary-index
- title: Slide period family
desc: |
These functions work by iterating over `.x` in "period blocks", such as
one month blocks of data. The blocks are defined using a combination of
a secondary date-like index vector, `.i`, and a period to block by.
contents:
- slide_period
- slide_period2
- title: Hop family
desc: |
These functions are lower level versions of their `slide()` equivalents.
They allow you to manually construct the boundaries to slide with, and
are useful if you need more flexibility than what `slide()` provides.
contents:
- hop
- hop2
- hop_index
- hop_index2
- title: Block
desc: |
`block()` breaks `.x` into its "period blocks". The blocks are defined
using a combination of a secondary date-like index vector, `.i`, and a
period to block by. The return value is always a list, and the elements
of the list are slices of `.x`.
contents:
- block