powered by
Finds the height and width of all the string in a character vector.
stringDims(string)
a vector of the number of lines in each string.
a vector with the number of character columns in the longest line.
vector of strings
Charles Dupont
stringDims finds the number of characters in width and number of lines in height for each string in the string argument.
stringDims
string
string.bounding.box, nchar
string.bounding.box
nchar
a <- c("this is a single line string", "This is a\nmulty line string") stringDims(a)
Run the code above in your browser using DataLab