getCharacters.Arguments

0th

Percentile

Coerces to a character vector and validates

Coerces to a character vector and validates.

Keywords
methods, internal, IO
Usage
Arguments$getCharacters(s, length=NULL, trim=FALSE, nchar=NULL, useNames=FALSE, 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") in s. If two, the minimum and maximu
useNames
If TRUE, the 'names' attribute is preserved, otherwise it is dropped.
asGString
If TRUE, each string is treated as a GString.
.name
A character string for name used in error messages.
...
Not used.
Value

  • Returns a character vector, if it is valid. Otherwise an exception is thrown.

synopsis

getCharacters.Arguments(static, s, length=NULL, trim=FALSE, nchar=NULL, useNames=FALSE, asGString=TRUE, .name=NULL, ...)

See Also

For more information see Arguments.

Aliases
  • getCharacters.Arguments
  • Arguments.getCharacters
  • getCharacters.Arguments
  • getCharacters,Arguments-method
  • Arguments.getCharacter
  • getCharacter.Arguments
  • getCharacter,Arguments-method
Documentation reproduced from package R.utils, version 1.6.1, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.