Revision 916a074d48e45aadecd80b9104ca4ab7f1efbf8e authored by Frank E Harrell Jr on 12 September 2023, 12:52:37 UTC, committed by cran-robot on 12 September 2023, 14:31:09 UTC
1 parent 1eb16c8
Raw File
string.bounding.box.Rd
\name{string.bounding.box}
\alias{string.bounding.box}
\title{Determine Dimensions of Strings}
\description{
  This determines the number of rows and maximum number of columns of
  each string in a vector.
}
\usage{
string.bounding.box(string, type = c("chars", "width"))
}
\arguments{
  \item{string}{vector of strings}
  \item{type}{character: whether to count characters or screen columns}
}
\value{
  \item{rows}{vector containing the number of character rows in each string}
  \item{columns}{vector containing the maximum number of character
    columns in each string}
}
\author{Charles Dupont}
\seealso{\code{\link{nchar}}, \code{\link{stringDims}}}
\examples{
a <- c("this is a single line string", "This is a\nmulti-line string")
stringDims(a)
}
\keyword{print}
back to top