search for: posints2

Displaying 1 result from an estimated 1 matches for "posints2".

Did you mean: points2
2008 Apr 15
1
Pb with validObject(..., complete=TRUE)
...setValidity("PosInts", function(object) { if (!all(object at ii > 0)) return("'ii' slot contains non-positive values") NULL } ) Let's extend this class (no need to add new slots for illustrating the pb): setClass("PosInts2", contains="PosInts") broken <- new("PosInts2") broken at ii <- 3:0 If "PosInts2" objects don't need to satisfy additional constraints in order to be considered valid, then I don't need to define a validity method for them. I can just rely on...