get_extent()
calculates the display width for each string in a character
vector.
get_max_extent()
calculates the maximum display width of all strings in a
character vector, zero for empty vectors.
get_extent(x) get_max_extent(x)
x | A character vector. |
---|
#> [1] 3 2get_extent("\u904b\u6c23")#> [1] 4#> [1] 3