Arguments$getCharacters
From R.utils v1.32.4
by Henrik Bengtsson
Coerces to a character vector and validates
Coerces to a character vector and validates.
Usage
## Static method (use this):
## Arguments$getCharacters(s, length=NULL, trim=FALSE, nchar=NULL, useNames=TRUE,
## asGString=getOption("Arguments$getCharacters/args/asGString", TRUE), .name=NULL,
## ...)## Don't use the below:
## S3 method for class 'Arguments':
getCharacters(static, s, length=NULL, trim=FALSE, nchar=NULL, useNames=TRUE,
asGString=getOption("Arguments$getCharacters/args/asGString", TRUE), .name=NULL, ...)
Arguments
- s
- A
vector
. - nchar
- A
numeric
vector
of length one or two. If one, the maximum number of characters ("length") ins
. If two, the minimum and maximum - useNames
- If
TRUE
, the 'names' attribute is preserved, otherwise it is dropped. - asGString
- If
TRUE
, each string is treated as aGString
. - .name
- A
character
string for name used in error messages. - ...
- Not used.
Value
See Also
For more information see Arguments
.
Community examples
Looks like there are no examples yet.