Problem with plot.ts, "["

Adrian Trapletti Adrian.Trapletti@wu-wien.ac.at
Fri, 02 Jul 1999 16:22:38 +0000


There seems to be a problem with plot.ts (R Version 0.64.2)

>x<-cbind(1:10,2:11)
>x<-as.ts(x)
>plot(x)
Error: subscript (20) out of bounds, should be at most 10
>

The problem is located in "[.ts":

> x<-cbind(1:10,2:11)
> x[is.finite(x)]
 [1]  1  2  3  4  5  6  7  8  9 10  2  3  4  5  6  7  8  9 10 11
> x<-as.ts(x)
> x[is.finite(x)]
Error: subscript (20) out of bounds, should be at most 10
>

and there (in "[.ts") the following statement gives the error:

Browse[1]>
debug: li <- length(ind <- (1:n)[i])

However I don't understand what this part exactly does?

Adrian

--
Adrian Trapletti, Vienna University of Economics and Business
Administration, Augasse 2-6, A-1090 Vienna, Austria
Phone: ++43 1 31336 4561, Fax: ++43 1 31336 708,
Email: adrian.trapletti@wu-wien.ac.at



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