groupVecValid {splusTimeDate} | R Documentation |
groupVec
Object Validation
Description
Checks the validity for groupVec
objects.
Usage
groupVecValid(object)
Arguments
object |
the object to be validated. |
Details
This function validates a groupVec
object by checking whether:
The
object
is actually agroupVec
(or extending class).The length of the
names
slot matches the length of theclasses
slot, and that both match the list length of thecolumns
slot.The classes of the vectors comprising the
columns
slots list have anis
relationship with the corresponding class names from theclasses
slot.All the vectors in the
columns
slot list are the same length.
Value
returns a logical value. If TRUE
, the object
is valid; otherwise, it returns a descriptive string.
See Also
groupVecExtValid
, groupVec
class
Examples
obj <- new("groupVec")
groupVecValid(obj)
[Package splusTimeDate version 2.5.8 Index]