I'm trying to simulate a time serie in R
x = vector()
simul = rnorm(0,1,n=100)
for(t in (1:100))
{
x[t] = t/5 + cos(2*t*pi/10)+simul[t]
}
plot(x)
ERROR :
Error in plot.window(...) : finite values required for 'ylim'
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf