rtf_nline_matrix: Calculate Number of Lines of a String Matrix

Description Usage Arguments Value Examples

View source: R/rtf_nrow.R

Description

Calculate each string matrix (e.g., table body in matrix format) row's maximum number of lines broken to given a specific cell size

Usage

1

Arguments

text

a matrix of string

strwidth

a matrix of string width in inches

size

a matrix of cell size in inches

#' @section Specification: The contents of this section are shown in PDF user manual only.

Value

a vector of integer (number of lines)

Examples

1
2
3
4
text <- matrix("this is a sentence", nrow = 2, ncol = 2)
strwidth <- matrix(6:9, nrow = 2)
size <- matrix(1:4, nrow = 2)
r2rtf:::rtf_nline_matrix(text = text, strwidth = strwidth, size = size)

r2rtf documentation built on Sept. 10, 2021, 1:06 a.m.