ts and defaults

Paul Gilbert pgilbert@bank-banque-canada.ca
Fri, 06 Aug 1999 14:35:14 -0400


Brian

The example below may be helpful to further illustrate the concern I have with
the effects of your ts library on defaults. According to the "Blue Book", in
Splus, in R up to 0.64.2, and in today's snapshot of 0.65 without the "ts"
library attached

> end(ts(rnorm(10), start=c(1991,1), frequency=1))

gives
[1] 2000    1

However, with the "ts" library attached the result is

[1] 2000

This change in the default behavior will break a lot of user code, effectively
meaning that many people who do a lot of time series work will not use the
library. Hopeful that is not what you intend. Even casual users, I believe, will
be confused by the change in behavior depending on whether  ts is attached or
not.

Possibly a much better way to define a new improved class is to give it a new
name, rather than a name that introduces conflicts with the old defaults.

I hope that you will have time to consider changing this before 0.65 is
released. I will be away for the next two week, but will be happy to continue
testing when I return.

Paul Gilbert



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