vert_pag_indices | R Documentation |
Find Column Indices for Vertical Pagination
vert_pag_indices(
obj,
cpp = 40,
colwidths = NULL,
verbose = FALSE,
rep_cols = 0L
)
obj |
ANY. object to be paginated. Must have a
|
cpp |
numeric(1). Number of characters per page (width) |
colwidths |
numeric vector. Column widths (in characters) for use with vertical pagination. |
verbose |
logical(1). Should additional informative messages about the search for
pagination breaks be shown. Defaults to |
rep_cols |
numeric(1). Number of columns (not including row labels) to be repeated on every page. Defaults to 0 |
A list partitioning the vector of column indices into subsets for 1 or more horizontally paginated pages.
mf <- basic_matrix_form(df = mtcars)
colpaginds <- vert_pag_indices(mf)
lapply(colpaginds, function(j) mtcars[, j, drop = FALSE])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.