Debian Codegraph @

man/get_extent.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/extent.R
3 \name{get_extent}
4 \alias{get_extent}
5 \alias{get_max_extent}
6 \title{Calculate display width}
7 \usage{
8 get_extent(x)
9
10 get_max_extent(x)
11 }
12 \arguments{
13 \item{x}{A character vector.}
14 }
15 \description{
16 \code{get_extent()} calculates the display width for each string in a character
17 vector.
18
19 \code{get_max_extent()} calculates the maximum display width of all strings in a
20 character vector, zero for empty vectors.
21 }
22 \examples{
23 get_extent(c("abc", "de"))
24 get_extent("\u904b\u6c23")
25 get_max_extent(c("abc", "de"))
26 }