Learn R Programming

clinify (version 0.3.0)

clin_page_by: Configure pagination using a page variable

Description

Configure pagination using a page variable

Usage

clin_page_by(x, page_by, max_rows = 10)

Value

A clintable object

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

Examples

Run this code
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)

Run the code above in your browser using DataLab