groupVec
Object Validation
groupVec
objects.
groupVecValid(object)
object
is valid, and a descriptive string
if it is not.
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.
obj <- new("groupVec") groupVecValid(obj)