Learn R Programming

r2rtf (version 1.0.2)

rtf_nline_vector: Calculate Number of Lines of a String Vector

Description

Calculate number of lines that a string vector (e.g., title, subline, footnote, source) broken to given a specific cell size

Usage

rtf_nline_vector(text, strwidth, size)

Value

a vector of integer (number of lines)

Arguments

text

a vector of string

strwidth

a vector of string width in inches

size

a vector of cell size in inches

Specification

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

Examples

Run this code
r2rtf:::rtf_nline_vector(
  text = c("title 1", "this is a sentence for title 2"),
  strwidth = c(0.4, 2),
  size = 0.5
)

Run the code above in your browser using DataLab