R-alpha: $tsp

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Tue, 2 Apr 1996 15:11:24 -0500


Date: Tue, 2 Apr 1996 15:11:24 -0500
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
To: R-testers@stat.math.ethz.ch
Subject: R-alpha: $tsp
Message-Id: <96Apr2.150659est.29463@mailgate.bank-banque-canada.ca>


attributes and attr seem to report $tsp incorrectly:

> z <- ts(0.1 *(1:100), start=c(1961,1), freq=12)
> tsp(z)
[1] 1961.00 1969.25   12.00
> attr(z, "tsp")
[1] 23532 23631    12
> attributes(z)
$tsp
[1] 23532 23631    12

$class
[1] "ts"


This messes up storage.mode as used by lsfit, which seems to object to
an invalid tsp attribute (Error: invalid time series parameters
specified).

Paul
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-