Hi Adrian,
This is probably taking a long time. I first tried with 7x10^6 times
and values and it took several minutes. The following code does what I
expected:
amdat<-data.frame(time=1:70,value=rnorm(70,-4))
amdat$value[amdat$value<0]<-0
sum(amdat$value)
[1] 5.07101
plot(amdat$time,amdat$
I have a time series with many millions of points.
Each point is of the form (time, value) but where the value is 0 there is
no record - ie the data set is sparse.
If I plot this using plot(myData) I get a correct plot going from time 0 to
time 7x10e7.
Given that there are many millions of point
2 matches
Mail list logo