See Oleg's grid test drive page for an overview of the new grid verb. Here are some proposals for this verb. Comments and suggestions welcome.
Contents
monad
The current (ibeta) version of grid is only monadic, with defaults being chosen for all options. I suggest one change - that no row/column headers are shown (currently they are numeric 0,1,2,...). Any strong preferences one way or the other?
dyad
A new dyadic definition will take options in the left argument.
These options can be given in the normal way of passing options to grid, i.e. the 2 methods supported by the grid's show verb, see grid_class.htm:
- a character string of names that can be read from the calling locale.
- a 2 column boxed matrix of names and corresponding values.
Also, the main such option would be the header, and this can be given in a simple form that follows the normal header settings, see grid_options/hdrcol, and also supports boxed lists of headers, for example:
0 |
both headers are 0,1,2... |
1 |
both headers are 1,2,3... |
0 2006 |
rows are 0,1,2... , cols are 2006 2007 2008 (nyi in i beta) |
'';2006 |
no row labels, cols are 2006 2007 2008 |
'A' |
row/col headers are A,B,C,... |
1;'A' |
rows are 1,2,3..., cols are A,B,C (as Excel) |
R;C |
rows are in list R, cols in list C |
A;B;C;D |
3-d grid with corresponding labels, followed by axis names |
For example, 0 grid X is the same as the ibeta grid X .
higher ranks
If the rank of y is greater than 2, the grid displays 2D slices through the data. The remaining axes can be selected in dropdown listboxes above the grid display. Axis names can given as the last element of the list of axis labels, and if given, these label the dropdown listboxes.
stack display
One possibility for the grid is to display the stack (13!:13''). Right now, the stack display is often much too large to be easily read. The grid could truncate each cell's display, then permit browsing through the stack, and full display of the current cell, say after a double-click. I would appreciate suggestions for this.
