Suppose I ran different loops in a notebook. In each one, I obtain e,g., a 1×120 Matrix{Float64}
array. I want to collect some of them in a data frame. I know how to do it (please, see MWE below). However, I find my clumsy code both primate and inefficient. There must be a way to make it more appealing and efficient. Unfortunately, my limited knowledge of DataFrames
precludes me from providing a solution to this problem. Some help would be very much appreciated. Thanks.
df1 = DataFrame(y1',[:a1])
df2 = DataFrame(k1',[:a2])
df3 = DataFrame(n1',[:a3])
df4 = DataFrame(time, [:t])
irfs = hcat(df4, df1, df2, df3) #, makeunique=true)