Julia DataFrames: create new column of arrays based on other columns
<p>I'm working with a dataset that I read in from a csv. I have columns p1, p2, p3, and p4 that I would like to combine into a single column whose values are the array [p1 p2 p3 p4].</p>

<p>```
x = DataFrame(randn(100,4))
names!(x, [:p1; :p2; :p3; :p4])</p>

<p>x[:test] = x[[:p1, :p2, :p3, :p4]]
x # Doesn't work
```</p>

<p>The result of the code above has a 100x4 DataFrames.DataFrame in every row of the data.</p>

<p>I saw this question <a href="https://stackoverflow.com/questions/36729891/julia-dataframe-where-a-column-is-an-array-of-arrays">Julia dataframe where a column is an array of arrays?</a> but it doesn't address how to add a new array column as a function of the existing columns of the table.</p>