# How can I get the chunks of a given array

**URL:** https://discourse.julialang.org/t/how-can-i-get-the-chunks-of-a-given-array/29737
**Category:** New to Julia
**Created:** [October 10, 2019, 4:43pm UTC](https://discourse.julialang.org/t/how-can-i-get-the-chunks-of-a-given-array/29737 "2019-10-10T16:43:21Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)
#### Post date: [October 10, 2019, 5:40pm UTC](https://discourse.julialang.org/t/how-can-i-get-the-chunks-of-a-given-array/29737/5 "2019-10-10T17:40:31Z")

</div>

or

```julia
using Statistics
zx = 1.0*reshape(series, 12, :)
 zx .-= mean(zx, dims=1)
mean(zx, dims=2)

```

---

_[View the full topic](https://discourse.julialang.org/t/how-can-i-get-the-chunks-of-a-given-array/29737)._
