View source: R/print.char.list.s
Finds the height and width of all the string in a character vector.
vector of strings
stringDims finds the number of characters in width and number of
lines in height for each string in the
a vector of the number of lines in each string.
a vector with the number of character columns in the longest line.
a <- c("this is a single line string", "This is a\nmulty line string") stringDims(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.