Description Usage Arguments Value
Fast nchar that can be used on integers and strings
1 2 3 4 5 | fast_nchar(x)
max_nchar(x)
const_nchar(x)
|
x |
Either an integer or character vector. |
Same as nchar(x)
.
max_nchar(x)
returns the max(nchar(x))
with the exception that length-zero inputs return zero, not -Inf
,
since negative-length strings are not possible.
const_nchar
returns the width of every string in x
if and only
if every element's width is the same. Otherwise, -1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.