groupVec Object Validation

DESCRIPTION:

Check validity for groupVec objects.

USAGE:

groupVecValid(object) 

REQUIRED ARGUMENTS:

object
object to be validated.

VALUE:

T if object is valid, and a descriptive string if it is not.

DETAILS:

This function checks to see that a groupVec object is valid. There are a few steps in this process. First, it checks to see that object is actually a groupVec (or extending class). Then it checks to see that the length of the .Data.names slot matches the length of the .Data.classes slot, and that both match the list length of the .Data slot. Next it checks that the classes of the vectors making up the .Data slots list have an is relationship with the corresponding class names from the .Data.classes slot. Finally, it checks to see that all the vectors in the .Data slot list are the same length.

SEE ALSO:

, class

EXAMPLES:

obj <- new("groupVec") 
groupVecValid(obj)