stri_prepare_arg_integer: Prepare an Integer Vector Argument [internal]
Description
This is an internal function. However, the interested user
may play with it in order to get more insight on how
stringi deals with its functions' arguments. See
`Value' section for details.Usage
stri_prepare_arg_integer(x)
Value
- If
x
is a factor, as.character
is
called, and the resulting character vector is coerced to
integer. If it is an integer vector, then it is returned
with no change. If an atomic vector or a matrix is given,
it is coerced to an integer vector. Otherwise the function
throws an error.