Hmisc (version 4.0-0)

stringDims: String Dimentions

Description

Finds the height and width of all the string in a character vector.

Usage

stringDims(string)

Arguments

string
vector of strings

Value

Details

stringDims finds the number of characters in width and number of lines in height for each string in the string argument.

See Also

string.bounding.box, nchar

Examples

Run this code
a <- c("this is a single line string", "This is a\nmulty line string")
stringDims(a)

Run the code above in your browser using DataCamp Workspace