Learn R Programming

formatters (version 0.5.0)

num_rep_cols: Number of repeated columns

Description

When called on a table-like object using the formatters framework, this method should return the number of columns which are mandatorily repeated after each horizontal pagination.

Usage

num_rep_cols(obj)

# S4 method for ANY num_rep_cols(obj)

Value

an integer.

Arguments

obj

ANY. A table-like object.

Details

Absent a class-specific method, this function returns 0, indicating no always-repeated columns.

Examples

Run this code
mpf <- basic_matrix_form(mtcars)
num_rep_cols(mpf)

Run the code above in your browser using DataLab