get_extent

0th

Percentile

Calculate display width

get_extent() calculates the display width for each string in a character vector.

get_max_extent() calculates the maximum display width of all strings in a character vector, zero for empty vectors.

Usage
get_extent(x)

get_max_extent(x)

Arguments
x

A character vector.

Aliases
  • get_extent
  • get_max_extent
Examples
# NOT RUN {
get_extent(c("abc", "de"))
get_extent("\u904b\u6c23")
get_max_extent(c("abc", "de"))
# }
Documentation reproduced from package pillar, version 1.0.1, License: GPL-3

Community examples

Looks like there are no examples yet.