strwidthest: Estimate string width

View source: R/strwidth.R

strwidthestR Documentation

Estimate string width

Description

Pre-computed width of strings without actually calling to graphics and new.plot. The function can only handle base ASCII characters and default width of those is estimated by using standard 12 pt serif on a standard plot. Non-ASCII characters are replaced by an underscore.

Usage

strwidthest(s)

Arguments

s

string

Value

numeric value representing the total width of the provided string in millimeters

Examples

## Not run: 
strwidthrel('R') # 71
strwidthrel('R is awesome!') # 635

## End(Not run)

rapportools documentation built on March 22, 2022, 1:06 a.m.