TimeSeries.jl: How to set the meta field in TimeArray (of TimeSeries.jl) after the array is constructed?

Is it possible to set the meta field in a TimeArray (of the TimeSeries.jl package) after the array is defined?

The only discussion of meta field in the manual is in the section on constructors. But what if my time array is already defined? In particular, I get the time array by converting from DataFrame.

The underlying struct is immutable, so i would say no, because that would require a mutable struct. You would have to call the constructor with the data from the table and the meta data to create a new TimeArray with the meta data in it.

1 Like