From roger at ysidro.econ.uiuc.edu  Tue Aug 26 13:01:46 2003
From: roger at ysidro.econ.uiuc.edu (Roger Koenker)
Date: Tue Aug 26 18:59:02 2003
Subject: [Rd] setClass question
In-Reply-To: <3F4B5D1A.34885B82@research.bell-labs.com>
Message-ID: <Pine.SOL.4.30.0308261152070.13183-100000@ysidro.econ.uiuc.edu>

> Roger Koenker wrote:

> > My understanding is that if I now try to construct a matrix.diag.csr
> > object checking of it should be like the checking for a matrix.csr object

On Tue, 26 Aug 2003, John Chambers wrote:
> Well, hopefully.  But there seems a slight problem in the validity
> method.
>
> You require a dimension slot of length 2, but the default object
> generated from matrix.csr fails that:

John's comment revealed a couple of problems with my default matrix.csr
object, which -- once corrected  -- allowed the validity checking for
the new class to operate just as I had originally expected.  The moral
of the story is that checking the validity of the default object with

	new("classname")

is quite worthwhile...thanks again to John,

Roger

url:	www.econ.uiuc.edu/~roger/my.html	Roger Koenker
email	rkoenker@uiuc.edu			Department of Economics
vox: 	217-333-4558				University of Illinois
fax:   	217-244-6678				Champaign, IL 61820


[Rd] setClass question
Roger Koenker