clin_page_by: Configure pagination using a page variable

View source: R/pagination.R

clin_page_byR 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)

clinify documentation built on April 12, 2025, 1:45 a.m.