string.bounding.box

0th

Percentile

Determine Dimensions of Strings

This determines the number of rows and maximum number of columns of each string in a vector.

Keywords
print
Usage
string.bounding.box(string, type = c("chars", "width"))
Arguments
string

vector of strings

type

character: whether to count characters or screen columns

Value

rows

vector containing the number of character rows in each string

columns

vector containing the maximum number of character columns in each string

See Also

nchar, stringDims

Aliases
  • string.bounding.box
Examples
# NOT RUN {
a <- c("this is a single line string", "This is a\nmulti-line string")
stringDims(a)
# }
Documentation reproduced from package Hmisc, version 4.0-3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.