split_kable: Split a table in into parts of balanced size

View source: R/kable.R

split_kableR Documentation

Split a table in into parts of balanced size

Description

Splits a table into a n_tb parts of similar sizing using standard styling in my_kable(). This is used when I want to split a long thin table across multiple columns to reduce a document's size. Returns a single table part. Which part given by argument index.

Usage

split_kable(df, index, n_tb = 2, digits = 3)

Arguments

df

A data frame.

index

Which part of the split table to return.

n_tb

The number of parts to split the table into.

digits

Sets the number of digits (via the kable() digits argument).

Details

Printing all table parts in one function call didn't work since I couldn't get kable() to print from within a function.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.