auto_index_group_rows: Compute automatically the index for grouping rows with...

View source: R/auto_index_group_rows.R

auto_index_group_rowsR Documentation

Compute automatically the index for grouping rows with kableExtra

Description

When using group_rows function from kableExtra, you can provide a names vector providing the number of rows to group together. auto_index_group_rows compute that index based on a vector by counting the successive identical values of that vector.

Usage

auto_index_group_rows(x)

Arguments

x

a vector

Examples

x <- c("a", "a", "a", "b", "b", "a", "c", "c")
auto_index_group_rows(x)

larmarange/JLutils documentation built on March 24, 2023, 6:39 a.m.