DATA ANALYSIS PACKAGE SYMBOL

GroupByKey

GroupByKey[datatable,f]
returns a DataTable in which the rows in in the input data table have been grouped into sublists with distinct f[row key (ID)].

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Define some data:

In[1]:=
Click for copyable input
Out[1]=

Group the rows based on the first 4 characters in the row key:

In[2]:=
Click for copyable input
Out[2]=