origdata ,:&.> modvals
+-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|
|9|10|11|12| 1| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12| 1| 2|
+-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
that's a little tricky. What it's really doing is:
origdata <@,:"0 modvals
+-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|
|9|10|11|12| 1| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12| 1| 2|
+-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
change formatting as needed
Henry Rich
On 12/26/2012 3:05 PM, PackRat wrote:
How does one get related data to display one above the other in a box?
For example, let's use the data in my recent residue question:
origdata=. 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26...
modvals=. 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 1 2...
How does one get the modvals to display at the top of a box and the
origdata to display at the bottom of the SAME box? Like this:
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+...
| 9|10|11|12| 1| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12| 1| 2|...
| 9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|...
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+...
I don't even know where to begin with this. I often wish someone would
write an essay on handling boxes, manipulating data within boxes,
displaying boxes and their enclosed data, and using open, close, from,
and amend with boxed data. Because of the tabular nature of most of
the data I'm currently working with, I end up using boxes one way or
another for nearly all J programs I write--and I have been frustrated
many times by my inability to find the information I'm looking for.
Earlier discussions on the forum talked about "beginner" topics. As a
multi-year beginner (or slightly beyond), this has always been one of
the most important topics for me. The frustrating part (to me, at
least) is what I consider a dearth of information gathered in one place
about boxes and their use.
Thanks in advance for your assistance in answering my question at the
beginning!
Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm