File: get_extent.Rd

package info (click to toggle)
r-cran-pillar 1.8.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,840 kB
  • sloc: sh: 13; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extent.R
\name{get_extent}
\alias{get_extent}
\alias{get_max_extent}
\title{Calculate display width}
\usage{
get_extent(x)

get_max_extent(x)
}
\arguments{
\item{x}{A character vector.}
}
\description{
\code{get_extent()} calculates the display width for each string in a character
vector.

\code{get_max_extent()} calculates the maximum display width of all strings in a
character vector, zero for empty vectors.
}
\examples{
get_extent(c("abc", "de"))
get_extent("\u904b\u6c23")
get_max_extent(c("abc", "de"))
}