Learn R Programming

splusTimeDate (version 1.5.0-72)

groupVecValid: groupVec Object Validation

Description

Checks the validity for groupVec objects.

Usage

groupVecValid(object)

Arguments

object
the object to be validated.

Value

  • returns a logical value. If TRUE, the object is valid; otherwise, it returns a descriptive string.

Details

This function validates a groupVec object by checking whether:
  1. Theobjectis actually agroupVec(or extending class).
  2. The length of thenamesslot matches the length of theclassesslot, and that both match the list length of thecolumnsslot.
  3. The classes of the vectors comprising thecolumnsslots list have anisrelationship with the corresponding class names from theclassesslot.
  4. All the vectors in thecolumnsslot list are the same length.

See Also

groupVecExtValid, groupVec class

Examples

Run this code
obj <- new("groupVec") 
groupVecValid(obj)

Run the code above in your browser using DataLab