# \#namedarrays

**URL:** https://discourse.julialang.org/tag/namedarrays/988.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [How to create and modify named vector in Julia?](https://discourse.julialang.org/t/how-to-create-and-modify-named-vector-in-julia/111412)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 10\
**Last updated:** [March 14, 2024, 3:33am UTC](https://discourse.julialang.org/t/how-to-create-and-modify-named-vector-in-julia/111412 "2024-03-14T03:33:31Z")

</div>

Hello, I am setting a polynomial function and a vector (array) that passes the parameters to this function, something like this: y = v\[1\]\*x + v\[2\]\*x^2 + v\[3\]\*x^3 It would be easier to remember the elements of the vect…

---

## [NamedArray - reducing over an empty collection error - VS Code](https://discourse.julialang.org/t/namedarray-reducing-over-an-empty-collection-error-vs-code/94624)

<div class="topic-metadata">

**Author:** [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Replies:** 2\
**Last updated:** [February 14, 2023, 8:30pm UTC](https://discourse.julialang.org/t/namedarray-reducing-over-an-empty-collection-error-vs-code/94624 "2023-02-14T20:30:27Z")

</div>

On VS Code: I am trying to create a named array, but it throws this error: ERROR: MethodError: reducing over an empty collection is not allowed; consider supplying init to the reducer My code is: using NamedArrays Na…

---

## [Is there a NamedArray or DimensionalData type package that can combine orthogonal dimensions?](https://discourse.julialang.org/t/is-there-a-namedarray-or-dimensionaldata-type-package-that-can-combine-orthogonal-dimensions/89610)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [November 2, 2022, 1:29am UTC](https://discourse.julialang.org/t/is-there-a-namedarray-or-dimensionaldata-type-package-that-can-combine-orthogonal-dimensions/89610 "2022-11-02T01:29:44Z")

</div>

Vectorised operations on regular arrays produce a cross product across dimensions. e.g. x = \[1 2 3\] a = reshape( x, (3,1,1)) b = reshape( x, (1,3,1)) c = reshape( x, (1,1,3)) X = @. a + b + c X\[3,3,3\] # =9 Simila…

---

## [Related or linked structures](https://discourse.julialang.org/t/related-or-linked-structures/85463)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 0\
**Last updated:** [August 8, 2022, 7:45am UTC](https://discourse.julialang.org/t/related-or-linked-structures/85463 "2022-08-08T07:45:46Z")

</div>

Is it possible to connect data structures, similar to Primary-Key Foreign-Key connections in a relational database? One way could be to have a type similar to enum that would limit a field to a given set of values. Usi…

---

## [How to lookup and assign on label-aware AbstractVectors in various packages](https://discourse.julialang.org/t/how-to-lookup-and-assign-on-label-aware-abstractvectors-in-various-packages/81309)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [May 20, 2022, 7:44am UTC](https://discourse.julialang.org/t/how-to-lookup-and-assign-on-label-aware-abstractvectors-in-various-packages/81309 "2022-05-20T07:44:00Z")

</div>

Sometimes I do not remember the position of dimensions or of the individual indexes in a multi-dimensional array and when performances are not a critical factor I prefer to work on keys rather than position. I am hence …

---

## [DataFrame: Cannot have duplicated names for indices](https://discourse.julialang.org/t/dataframe-cannot-have-duplicated-names-for-indices/78396)

<div class="topic-metadata">

**Author:** [@tlorans](https://discourse.julialang.org/u/tlorans)\
**Replies:** 6\
**Last updated:** [March 24, 2022, 3:13pm UTC](https://discourse.julialang.org/t/dataframe-cannot-have-duplicated-names-for-indices/78396 "2022-03-24T15:13:39Z")

</div>

Hello everyone, I’d just spent 5 hours on a simple issue with joining two dataframes. I’ve basically two dataframes, one with a column of sectors and value, the other with new sectors mapped to the previous one as well…
