get_extent: Calculate display width

Description Usage Arguments Examples

View source: R/extent.R

Description

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

1
2
3

Arguments

x

A character vector.

Examples

1
2
3
get_extent(c("abc", "de"))
get_extent("\u904b\u6c23")
get_max_extent(c("abc", "de"))

pillar documentation built on Dec. 20, 2019, 9:07 a.m.