Thursday, 11 May 2017

R S4 Programming Check Validity

Once an S4 class is defined (using "setClass"), sanity checks can be re-enforced by defining "setValidity" function.

Equivalently, you can also specify "validity" method as an argument to the "setClass" function.

You can check a class object is valid using "validObject" function.




No comments:

Post a Comment