Configure alternating pages during pagination of a clintable
Source:R/pagination.R
clin_alt_pages.Rd
This function configures alternating pages on a clintable object.
Examples
ct <- clintable(mtcars)
clin_alt_pages(
ct,
key_cols = c('mpg', 'cyl', 'hp'),
col_groups = list(
c('disp', 'drat', 'wt'),
c('qsec', 'vs', 'am'),
c('gear', 'carb')
)
)
#> NOTE: Alternating pages were set, but no selection for row wise pagination was configured Defaulting to 20 rows per page.
mpg
cyl
hp
disp
drat
wt
21.0
6
110
160.0
3.90
2.620
21.0
6
110
160.0
3.90
2.875
22.8
4
93
108.0
3.85
2.320
21.4
6
110
258.0
3.08
3.215
18.7
8
175
360.0
3.15
3.440
18.1
6
105
225.0
2.76
3.460
14.3
8
245
360.0
3.21
3.570
24.4
4
62
146.7
3.69
3.190
22.8
4
95
140.8
3.92
3.150
19.2
6
123
167.6
3.92
3.440
17.8
6
123
167.6
3.92
3.440
16.4
8
180
275.8
3.07
4.070
17.3
8
180
275.8
3.07
3.730
15.2
8
180
275.8
3.07
3.780
10.4
8
205
472.0
2.93
5.250
10.4
8
215
460.0
3.00
5.424
14.7
8
230
440.0
3.23
5.345
32.4
4
66
78.7
4.08
2.200
30.4
4
52
75.7
4.93
1.615
33.9
4
65
71.1
4.22
1.835