Re: [Rd] vector S4 classes

2006-08-29 Thread Gabor Grothendieck
You might want to look at the source for the R 'its' package. It defines an S4 class for an irregular time series whose representation consists of 1. a matrix portion analogous to your vector portion to hold the series of multivariate series, and 2. a "dates" slot analogous to your accurate s

Re: [Rd] vector S4 classes

2006-08-29 Thread Robin Hankin
Hi Martin thanks for this. I see what you say about R not being able to magically subset the "accuracy" slot. Which leaves me puzzled as to why anyone would define a vector class such as "string" (p315). I can't see why "string" is defined as it is, rather than use something like "fungi" fr

Re: [Rd] vector S4 classes

2006-08-29 Thread Martin Maechler
> "Robin" == Robin Hankin <[EMAIL PROTECTED]> > on Tue, 29 Aug 2006 10:42:21 +0100 writes: Robin> In the Green Book, section 7.5 discusses new vector classes and uses Robin> quaternions Robin> as an example of a vector class that needs more than one number per Robi

[Rd] vector S4 classes

2006-08-29 Thread Robin Hankin
In the Green Book, section 7.5 discusses new vector classes and uses quaternions as an example of a vector class that needs more than one number per element. I would like to define a new class that has a numeric vector and a logical vector of the same length that specifies whether the measur