Learn R Programming

splusTimeDate (version 2.5.8)

groupVecValid: groupVec Object Validation

Description

Checks the validity for groupVec objects.

Usage

groupVecValid(object)

Value

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

Arguments

object

the object to be validated.

Details

This function validates a groupVec object by checking whether:

  1. The object is actually a groupVec (or extending class).

  2. The length of the names slot matches the length of the classes slot, and that both match the list length of the columns slot.

  3. The classes of the vectors comprising the columns slots list have an is relationship with the corresponding class names from the classes slot.

  4. All the vectors in the columns slot 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