Learn R Programming

r2rtf (version 1.0.2)

nrow_table: Calculate Number of Lines Broken to for Each Table Row

Description

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

Usage

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

Value

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

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

Specification

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

Examples

Run this code
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)

Run the code above in your browser using DataLab