Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Map functions over columns instead of rows
ResourceFunction["ColumnMap"][f,list,n] maps the function f over the nth column of a table list. | |
ResourceFunction["ColumnMap"][f,list,{n1,n2,…}] maps the function f over the columns n1,n2, … of a table list. | |
ResourceFunction["ColumnMap"][{f1,f2,…},list,{n1,n2,…}] maps the function fi over the column ni of a table list. |
Specify functions to map over each column of a table:
In[1]:= |
Out[1]= |
Map a function over a column:
In[2]:= |
Out[2]= |
Map a function over specific columns:
In[3]:= |
Out[3]= |
Map multiple functions over multiple columns:
In[4]:= |
Out[5]= |
ColumnMap's column indices may be either positive or negative:
In[6]:= |
Out[6]= |
ColumnMap works on lists that have columns (i.e. lists with Depth ≥3):
In[7]:= |
Out[7]= |
This work is licensed under a Creative Commons Attribution 4.0 International License