Re: [R] create a zero matrix & fill

2008-07-04 Thread jim holtman
It would help if you follows the posting guide and provided commented, minimal, self-contained, reproducible code. You at least have to tell what the structure of Results is (str(Results)). It looks like a list and if you are trying to plot the index vs. the mean, you might try: plot(Results[[1]

[R] create a zero matrix & fill

2008-07-04 Thread mysimbaa
Dear R user, I have written a function which returns max,min and variation of a power (see below) Power is a given matrix(1,n) I call the function >Variation<-VAR(p,(n-deltat)) Now the problem is when I want plot(Results[1],Results[2]). Not possible! I become the following error (in english i