Re: [Rd] Use of R_PROFILE.R / install.R

2004-08-09 Thread Prof Brian Ripley
On Mon, 9 Aug 2004, Kurt Hornik wrote: Prof Brian Ripley writes: According to R-exts: The second purpose for @file{install.R} is to hold code that needs to be executed each time the package is attached, after the image is loaded. Few packages have a need for such code so

[Rd] Subsetting time series

2004-08-09 Thread Rob Hyndman
When part of a time series is extracted, the time series component is lost. e.g., x - ts(1:10) x[1:4] It would be nice if there was a subsetting function [.ts to avoid this problem. However, it is beyond my R-coding ability to produce such a thing. Is someone willing to do it? Rob

Re: [Rd] Subsetting time series

2004-08-09 Thread Ross Ihaka
Rob Hyndman wrote: When part of a time series is extracted, the time series component is lost. e.g., x - ts(1:10) x[1:4] It would be nice if there was a subsetting function [.ts to avoid this problem. However, it is beyond my R-coding ability to produce such a thing. Is someone willing to do