Re: [Jprogramming] transform table columns to rows

2016-03-18 Thread Linda A Alvord
Joe, your problem, like many others, forces us to simplify, simplify, simplify. Here's a 4th grade, simple J version of the tacit solution Henry provided. h=: 13 :'([:,/({. ,. }.)"1)}.y' It took me a while to get it right, but it is certainly better than my first version. Linda -Original

[Jprogramming] symbol index origin

2016-03-18 Thread David Lambert
The symbol indexes start at 1. s:'`a' NB. enter a symbol into a (symbol fresh) j session `a 6 s:s:'`a' NB. the index is 1 1 0 s:3 NB. string table shows the one string. a 6 s:s:'`' NB. Oh! The fill symbol hides. 0 -

Re: [Jprogramming] JHS button entry application for contract bridge scoring

2016-03-18 Thread robert therriault
Hi Brian, It has been awhile since I have done the deep dive with CSS, but I did use it pretty extensively in the Enhanced Display. I was using svg as a framework and creating the svg based on the type and shape of the input, but if you look at the noun sh defined in http://code.jsoftware.com

[Jprogramming] Style guide

2016-03-18 Thread 'Jon Hough' via Programming
I'm pretty sure there used to be some sort of style guide in the wiki (the old wiki). But I cannot find any trace of it, so I possibly imagined it. Anyway, does anyone have a style guide they could share, or point me to one in the wiki? I'm talking about things like camelCase vs snake_case, verb

Re: [Jprogramming] transform table columns to rows

2016-03-18 Thread Joe Bogner
Solutions like this remind me how grateful I am to have J in my toolbox. I have a 6,000 row excel file with 75 columns that I needed to 'unpivot' I could have used the Excel Power Query's Unpivot function, but without that or J it would have been a hassle. On Thu, Mar 17, 2016 at 10:54 PM, Henry

Re: [Jprogramming] transform table columns to rows

2016-03-18 Thread Linda A Alvord
Henry, Your result has 24 rows. Linda -Original Message- From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Henry Rich Sent: Thursday, March 17, 2016 10:55 PM To: Programming forum Subject: Re: [Jprogramming] transform table columns to rows Your table is re

Re: [Jprogramming] Style guide

2016-03-18 Thread Dan Bron
Pascal wrote: > Anyway, does anyone have a style guide they could share, or point me to one > in the wiki? I can point you at: http://code.jsoftware.com/wiki/PersonalTaste and http://code.jsoftware.com/wiki/User:Dan_Bron/Style

[Jprogramming] transform table columns to rows

2016-03-18 Thread Joe Bogner
Is there a simple or efficient transform of tbl =: ' ' cut every LF cut (0 : 0) id col1 col2 col3 col4 col5 col6 1 ab cd ef gh hi jk 2 lm no pq rs tu vw 3 xy zz aa bb cc dd ) +--+++++++ |id|col1|col2|col3|col4|col5|col6| +--+++++++ |1 |ab |cd |ef

Re: [Jprogramming] JHS button entry application for contract bridge scoring

2016-03-18 Thread Brian Schott
Bob, Your comment that radio buttons have no such attributes must be the main point. I guess I must look into using or or