string.bounding.box | R Documentation |
This determines the number of rows and maximum number of columns of each string in a vector.
string.bounding.box(string, type = c("chars", "width"))
string |
vector of strings |
type |
character: whether to count characters or screen columns |
rows |
vector containing the number of character rows in each string |
columns |
vector containing the maximum number of character columns in each string |
Charles Dupont
nchar
, stringDims
a <- c("this is a single line string", "This is a\nmulti-line string")
stringDims(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.