view v group cols gcol   =>   view
v   input view
cols   column references
gcol   new group column name

Group takes a view v and rearranges all repeated values in cols, so that they appear once, with all other columns grouped into a new gcol subview column.

If cols is empty, all rows will be moved into a single subview.

Examples:
set v [view {A B} def {a 1 b 2 c 5 b 3 b 4}]

view $v group A G
AG
0a
B
01
1b
B
02
13
24
2c
B
05
view $v group {A B} G
ABG
0a1
0
1b2
0
2c5
0
3b3
0
4b4
0
view $v group {} G
G
0
AB
0a1
1b2
2c5
3b3
4b4