From adrian@olsen.ch  Thu Feb  1 09:07:10 2001
From: adrian@olsen.ch (adrian@olsen.ch)
Date: Thu, 1 Feb 2001 10:07:10 +0100 (MET)
Subject: [Rd] inconsistent behaviour between class() and inherits() (PR#834)
Message-ID: <200102010907.KAA29138@pubhealth.ku.dk>

Example:

> x<-ts(rnorm(10))
> y<-ts(rnorm(10))
> r<-residuals(lm(y~x))
> is.ts(r)
[1] FALSE
> inherits(r,"ts")
[1] FALSE
> class(r)
[1] "ts"
> is.ts(x)
[1] TRUE
> inherits(x,"ts")
[1] TRUE
> class(x)
[1] "ts"


--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.5.1
 arch = sparc
 os = solaris2.5.1
 system = sparc, solaris2.5.1
 status = 
 major = 1
 minor = 2.1
 year = 2001
 month = 01
 day = 15
 language = R

Search Path:
 .GlobalEnv, package:olsen, package:ffnet, package:tseries, package:ts, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] inconsistent behaviour between class() and inherits() (PR#834)
adrian@olsen.ch