Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Dynamic name of DataFrames by iteration

$
0
0

@Alfre_chile77 wrote:

Hi,
I want to create seven different Data Frames with different names tbl1:tbl7 based on the iteration over groupby()[i]

n1=7
for i in 1:n1
global “tbl$(i)”
“tbl$(i)”= groupby(d4,:variable)[i]
println(first(“tbl$(i)”,3))
end

I receive a message:
syntax: invalid syntax in “global” declaration

How could I obtain those seven different Data Frames to perform more evaluations individually (and plot them as well).

Regards

Posts: 7

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles