field_length(x, n = NULL, min = NULL, max = NULL, ...)
Value
A [logical] of size length(x).
Arguments
x
Bare (unquoted) name of a variable.
Otherwise a vector of class character. Coerced to character as
necessary.
n
Number of code points required.
min
Mimimum number of code points
max
Maximum number of code points
...
passed to nchar (for example type="width")
Details
The number of code points (string length) may depend on current locale
settings or encoding issues, including those caused by inconsistent choices
of UTF normalization.
See Also
Other format-checkers:
field_format(),
number_format()