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