Hi all,

The TimeArray type in the TimeSeries package is immutable. I think I can 
see why this makes sense. However, I think this means that if the array I 
have in the "values" field is of dimension greater than 1 (let's say it is 
a matrix), then the only way I can remove an observation from my TimeArray 
is to construct a completely new TimeArray variable with that observation 
missing. Is this right? My reasoning is that although I could remove the 
observation from the "timestamp" field using deleteat!, I can't do the same 
for the "values" field since it is a matrix, nor can I assign a new matrix 
with one less row to the "values" field, because the TimeArray type is 
immutable.

I just wanted to check if my reasoning was correct or if there is some 
clever way to accomplish the removal of an observation without constructing 
an entirely new TimeArray variable.

Cheers,

Colin

Reply via email to