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

**URL:** <https://discourse.julialang.org/t/timeseries-jl-how-to-set-the-meta-field-in-timearray-of-timeseries-jl-after-the-array-is-constructed/32703>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 26, 2019, 1:30am UTC](https://discourse.julialang.org/t/timeseries-jl-how-to-set-the-meta-field-in-timearray-of-timeseries-jl-after-the-array-is-constructed/32703 "2019-12-26T01:30:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [December 26, 2019, 1:30am UTC](https://discourse.julialang.org/t/timeseries-jl-how-to-set-the-meta-field-in-timearray-of-timeseries-jl-after-the-array-is-constructed/32703/1 "2019-12-26T01:30:52Z")

</div>

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](https://juliastats.org/TimeSeries.jl/latest/timearray/#TimeSeries.TimeArray). But what if my time array is already defined? In particular, I get the time array by [converting from DataFrame](https://juliastats.org/TimeSeries.jl/latest/tables/#DataFrame-to-TimeArray-1).

---

<div class="post-metadata">

**Author:** ![wherrera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wherrera/32/5288_2.png) [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Post date:** [December 26, 2019, 11:09am UTC](https://discourse.julialang.org/t/timeseries-jl-how-to-set-the-meta-field-in-timearray-of-timeseries-jl-after-the-array-is-constructed/32703/2 "2019-12-26T11:09:13Z")

</div>

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.
