[Rd] window() problem (PR#8545)

2006-01-31 Thread KjetilBrinchmannHalvorsen
window() does not work correctly when called with extend=TRUE and the new time range intersect null with the old time range! Maybe this is really a feature request, but the documentation does not say what to expect in this case. This case does occur in programming! This is R2.2.1 on windows, l

[Rd] recover() (PR#8546)

2006-01-31 Thread KjetilBrinchmannHalvorsen
After using options(error=recover), it takes a long time (too long) to get back to the prompt. Look at: Browse[1]> recover() Enter a frame number, or 0 to exit 1: window(test, start = c(15, 1), end = c(17, 1), extend = TRUE) 2: window.ts(test, start = c(15, 1), end = c(17, 1), extend = TRUE) 3:

[Rd] bug in ccf (PR#8893)

2006-05-23 Thread KjetilBrinchmannHalvorsen
This is R 2.3.0 from CRAN, windows XP. The following looks like a bug in ccf(): > x <- ts(rnorm(100), start=1) > y <- ts(rnorm(120), start=3) > ccf(x,y) Erro en na.fail.default(ts.union(as.ts(x), as.ts(y))) : missing values in object > ccf(x,y, na.action=na.pass) Erro en na.fail.defa

[Rd] bug in prcomp (PR#8994)

2006-06-16 Thread KjetilBrinchmannHalvorsen
The following seems to be an bug in prcomp(): > test <- ts( matrix( c(NA, 2:5, NA, 7:10), 5, 2)) > test Time Series: Start = 1 End = 5 Frequency = 1 Series 1 Series 2 1 NA NA 227 338 449 55 10 > prcomp(test, scale.=TRU