Learn R Programming

r2rtf (version 1.0.2)

rtf_nline_matrix: Calculate Number of Lines of a String Matrix

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

rtf_nline_matrix(text, strwidth, size)

Value

a vector of integer (number of lines)

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.

Examples

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

Run the code above in your browser using DataLab