Sorry: there was an error in the last sentence:
And, inside those validity checks, is most of the checking done with
'if' 'else' computations, or is it also common to use try()?
Cheers!!
Albert-Jan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the face of ambiguity, refuse the temptation to guess.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- On Mon, 3/8/10, Albert-Jan Roskam <fomcl@yahoo.com> wrote:
From: Albert-Jan Roskam <fomcl@yahoo.com>
Subject: [R] setClass or setValidity?
To: r-help@r-project.org
Date: Monday, March 8, 2010, 4:14 PM
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the face of ambiguity, refuse the temptation to guess.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[[alternative HTML version deleted]]
-----Inline Attachment Follows-----
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]