# How to access columns in a Vector{Array{Float64,2}}

**URL:** https://discourse.julialang.org/t/how-to-access-columns-in-a-vector-array-float64-2/40659
**Category:** New to Julia
**Created:** [June 3, 2020, 10:59am UTC](https://discourse.julialang.org/t/how-to-access-columns-in-a-vector-array-float64-2/40659 "2020-06-03T10:59:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HelgavonLichtenstein](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgavonlichtenstein/32/5005_2.png) [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)
#### Post date: [June 3, 2020, 10:59am UTC](https://discourse.julialang.org/t/how-to-access-columns-in-a-vector-array-float64-2/40659/1 "2020-06-03T10:59:17Z")

</div>

I have a `Vector{Array{Float64,2}}` that I want to access columns from, but I don’t know how. It is generated via comprehension. Does it need to be turned into a DataFrame? If so, how? When I try `df1 = DataFrames(one_foodweb_result)` I get `MethodError: objects of type Module are not callable`.

I understand that it’s 3D, so to access data is it like [row, column, frame/array]?

```julia
Vector{Array{Float64,2}} with 4 elements
50001×6 Array{Float64,2}:
50001×6 Array{Float64,2}:
50001×6 Array{Float64,2}:
50001×6 Array{Float64,2}:

```

---

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [June 3, 2020, 11:08am UTC](https://discourse.julialang.org/t/how-to-access-columns-in-a-vector-array-float64-2/40659/2 "2020-06-03T11:08:37Z")

</div>

You apparently have a vector of matrices (call it `A`). `A[i]` gives you the matrix at position `i`. `A[i][j, k]` gives you the entry `[j, k]` of the matrix at position `i` in `A`. `A[i][:, k]` gives you the column `k` of the matrix at `A[i]`. Etc.

---

<div class="post-metadata">

### Author: ![HelgavonLichtenstein](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/helgavonlichtenstein/32/5005_2.png) [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)
#### Post date: [June 3, 2020, 11:13am UTC](https://discourse.julialang.org/t/how-to-access-columns-in-a-vector-array-float64-2/40659/3 "2020-06-03T11:13:40Z")

</div>

Yes! Thank you!
