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
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
2 matches
Mail list logo