Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Join across an arbitrary number of lists of associations
ResourceFunction["JoinAcrossAll"][{list1,list2,…},keyspec] gives a list of associations obtained by joining all associations in the listi in which the values specified by keyspec match. | |
ResourceFunction["JoinAcrossAll"][{tab1,tab2,…},keyspec] joins Tabular objects according to keyspec. | |
ResourceFunction["JoinAcrossAll"][data,keyspec,joinspec] uses joinspec to determine when to allow associations that contain missing elements to be generated. |
Join three lists of associations using a as the key:
In[1]:= | ![]() |
Out[1]= | ![]() |
Join multiple tables from the ATP Tour:
In[2]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
In[4]:= | ![]() |
Out[4]= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
JoinAcross only combines 2 items:
In[6]:= | ![]() |
Out[6]= | ![]() |
Combing three items requires nesting JoinAcross twice:
In[7]:= | ![]() |
Out[7]= | ![]() |
JoinAcrossAll does this in one step:
In[8]:= | ![]() |
Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License