That won't work, though, for data which results from readcsv.

I was just using numeric data because that made the example easy to construct.

Thanks,

-- 
Raul


On Wed, Jul 15, 2015 at 3:46 PM, 'Pascal Jasmin' via Programming
<[email protected]> wrote:
> an alternative that takes the same space but keeps the data numeric
>
> (;:'a b c d'),: ,. each  <"1&.|: p:p:p:i.4 4
>
>
> ----- Original Message -----
> From: Raul Miller <[email protected]>
> To: Programming forum <[email protected]>
> Cc:
> Sent: Wednesday, July 15, 2015 3:33 PM
> Subject: [Jprogramming] minor note: csv data
>
> I've been using ~.": a lot lately, when working with csv data (with a
> header row).
>
> Here's what that looks like:
>
>    ~.": (;:'a b c d'),]&.>p:p:p:i.4 4
> ┌────┬────┬────┬────┐
> │a   │b   │c   │d   │
> ├────┼────┼────┼────┤
> │13  │19  │43  │71  │
> │163 │193 │293 │359 │
> │463 │619 │743 │971 │
> │1091│1181│1423│1601│
> └────┴────┴────┴────┘
>
> of course, that will be mangled if you're using a proportionally
> spaced font or have other font issues. But in a good fixed width font,
> you get a more compact display than boxed.
>
> This wouldn't work right if rows of data were duplicated, but that
> would be garbage data in the contexts I've been working with. So for
> me that's a non-issue.
>
> Anyways, this might work for someone else, also...
>
> FYI,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to