Re: [R] tis: cannot alter subset when input matrix contains NAs

2010-04-30 Thread Gabor Grothendieck
Here is a workaround: for(i in 1:nrow(x)) x[i, x[i, ] > 0] <- 0 On Fri, Apr 30, 2010 at 11:10 AM, Abiel X Reinhart wrote: > When using the tis time series package (v1.9), I cannot select or alter a > subset of a time series when the time series is created from a matrix and the > matrix contain

[R] tis: cannot alter subset when input matrix contains NAs

2010-04-30 Thread Abiel X Reinhart
When using the tis time series package (v1.9), I cannot select or alter a subset of a time series when the time series is created from a matrix and the matrix contains NA values. Example: x<-tis(t(c(1:10,NA)), start=c(2000,1), freq=12) x[x>0]<-0 The second line yields "Error in if (any(i > nro