clin_page_by {clinify} | R Documentation |
Configure pagination using a page variable
Description
Configure pagination using a page variable
Usage
clin_page_by(x, page_by, max_rows = 10)
Arguments
x |
A clintable object |
page_by |
A variable in the input dataframe to use for pagination |
max_rows |
If no page_by, the maximum rows allowed per page |
Value
A clintable object
Examples
dat <- mtcars
dat["page"] <- c(
rep(1, 10),
rep(2, 10),
rep(3, 10),
c(4, 4)
)
clintable(dat) |>
clin_page_by("page")
clintable(mtcars) |>
clin_page_by(max_rows = 10)
[Package clinify version 0.3.0 Index]