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)
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
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)
#> [1] 4 3