Skip to contents

Calculate number of lines broken to for each row of a table

Usage

nrow_table(tbl, size, page_size = size, padding = 0.2)

Arguments

tbl

A data frame with attributes or a data frame's rtf_footnote or rtf_source attributes

size

Table size in inches

page_size

Page size in inches

padding

Cell padding in inches

Value

a numeric vector of number of maximum lines broken to for each row

Specification

The contents of this section are shown in PDF user manual only.

Examples

library(dplyr) # required for running example
tbl <- iris[c(1:4, 50:54), ] %>%
  rtf_title(title = "Iris example") %>%
  rtf_body()
r2rtf:::nrow_table(tbl, size = 2.55)
#> [1] 1 1 1 1 1 1 1 1 1