getVector.Arguments {R.utils} | R Documentation |
Validates a vector by checking its length (number of elements).
Arguments$getVector(x, length=NULL, .name=NULL, ...)
x |
A single vector . |
length |
A numeric vector of length two or more. If two, it
is the minimum and maximum length of x . Elsewise it is the
set of possible lengths of x . |
.name |
A character string for name used in error messages. |
... |
Not used. |
Returns the same vector
, if it is valid. Otherwise an exception is
thrown.
Henrik Bengtsson (http://www.braju.com/R/)
For more information see Arguments
.