Joins
Table Joins
Table joins are accomplished through the join function.
Appending Tables with the Same Columns
The merge function will combine tables while maintaining the sorting of the primary key(s).
julia> t1 = table(1:5, rand(5); pkey=1)Table with 5 rows, 2 columns: 1 2 ─────────── 1 0.358164 2 0.357457 3 0.4553 4 0.507438 5 0.137757julia> t2 = table(6:10, rand(5); pkey=1)Table with 5 rows, 2 columns: 1 2 ──────────── 6 0.384686 7 0.122513 8 0.966856 9 0.970202 10 0.242615julia> merge(t1, t2)Table with 10 rows, 2 columns: 1 2 ──────────── 1 0.358164 2 0.357457 3 0.4553 4 0.507438 5 0.137757 6 0.384686 7 0.122513 8 0.966856 9 0.970202 10 0.242615