: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Tuesday, March 3, 2015 3:43 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Transform boxed data to html representation
Here's what I use a lot. Run the code in jhs
t.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of 'Pascal
Jasmin' via Programming
Sent: Tuesday, March 3, 2015 2:14 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Transform boxed data to
cketF each ": each <"0 i.3 4
makes a lot of extra whitespace in result, but layout is readable. There is a
copy/paste reusability for including formatting attributes and other tweaks
- Original Message -
From: Devon McCormick
To: J-programming forum
Cc:
Sent: Tuesday, M
Good suggestion, thank you for adding
On Tue, Mar 3, 2015 at 1:37 PM, Devon McCormick wrote:
> I like Raul's and Joe's approaches better than the one I proposed. However
> I might modify, say Joe's version, to add some formatting like this:
>
> buildTable =: 3 : 0
>cols =. ,"2 (''&,@]@,&'')
I like Raul's and Joe's approaches better than the one I proposed. However
I might modify, say Joe's version, to add some formatting like this:
buildTable =: 3 : 0
cols =. ,"2 (''&,@]@,&'') every y
rows =. , TAB,"1 LF,~"1(''&,@]@,&'')"1 cols
table =. '',LF,rows,''
)
So (this probably
How about something like this?
NB. some data that is slightly offset
data=. 3 4 $ ;: 'abc ab xyz'
buildTable =: 3 : 0
cols =. (''&,@]@,&'') every y
rows =. , (''&,@]@,&'')"2 cols
table =. '',rows,''
)
buildTable data
On Tue, Mar 3, 2015 at 9:40 AM, Chernin, Nadav wrote:
> Hi,
> I need in my
Here's how I might approach something like this:
td=: '',":,''"_
tr=: '',([:;td each),''"_
table=: '',([:;<@tr"1),''"_
Example use:
table i.3 3
That results in a very long line, so let's change:
tr=: '',([:;td each),('',LF)"_
table i.3 3
012
345
678
Note that boxed data gets
Oleg Obchenko created a handy utility for this, but it is slightly dated.
http://olegykj.sourceforge.net/scripts/okhtml2.zip
The following paragraph explains the feature that remains in Olegs utlity,
that requires change. There is another utility which automates the change
and I will attempt to c
I've done this sort of thing using a template-based approach where I start
with a character vector containing the formatting I want to use with
place-holders for the data items.
tmplt=. '{c1}{c2}{c3}'
In this case, items in column one are represented by '{c1}' and so on for
the other columns.
Hi,
I need in my project to represent boxed data in html report
I try to find some code that can help me to do that
Thanks
Nadav Chernin
--
For information about J forums see http://www.jsoftware.com/forums.htm
10 matches
Mail list logo