search for: setvaliditity

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

Did you mean: setvalidity
2010 Mar 08
1
setClass or setValidity?
Hi,   I'm reading up on S4 classes *). There seem to be at least two ways of input validation: setClass() (using the 'validity' argument)  and setValidity(). Is it a matter of taste which function is used? Or should more complex validation code better be put in a setValiditity call? *) A (Not So) Short Introduction to S4 Object Oriented Programming in R V0.5.1 Christophe Genolini August 20, 2008   And, inside those validity checks, is most of the checking done with 'if' 'else' computations, or is it also common to use except()? Cheers!! Albert-Jan ~~~...