From plummer@iarc.fr  Wed Aug 11 08:23:38 1999
From: plummer@iarc.fr (Martyn Plummer)
Date: Wed, 11 Aug 1999 09:23:38 +0200 (CEST)
Subject: Is a ts of length one a ts? (PR#245)
In-Reply-To: <199908101606.SAA27541@pubhealth.ku.dk>
Message-ID: <XFMail.990811092338.plummer@iarc.fr>

On 10-Aug-99 ripley@stats.ox.ac.uk wrote:
> Is there any good reason why a time series of length one is not
> allowed by [.ts (you can certainly create one with ts)?

It certainly has a start and an end value, but what's the
frequency?  If you want the tsp attribute of a time series
to be well defined, then maybe you should disallow series
of length 1.

"[.ts" certainly needs fixing.  There has been some discussion
about this and I think the consensus was that "[.ts" should
not attempt to return a time series when taking row subsets
(computationally expensive, and quite difficult to cover
all cases, see PR#216, PR#217).  The window() function is more
appropriate for taking subseries IMHO.

Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Is a ts of length one a ts? (PR#245)
Martyn Plummer