Many thanks, all clear now. The comma did the trick.
] rawdata =: fread'/home/dg/dev/za2.txt'
1,2,3,b,4
1,2,3,c,4
] data=: >',' cut each cutLF rawdata
┌─┬─┬─┬─┬─┐
│1│2│3│b│4│
├─┼─┼─┼─┼─┤
│1│2│3│c│4│
└─┴─┴─┴─┴─┘
(<*,*'c') = data
0 0 0 1 0
0 0 0 0 0
(<,'c') = data
0 0 0 0 0
0 0 0 1 0
On
,$ &> ;: 'a b c' NB. words, or csv create boxed lists
1 1 1
$ 'Q' NB. atom
$ ,'Q' NB. list
1
On Wednesday, August 30, 2023 at 02:59:28 p.m. EDT, Raul Miller
wrote:
'Q'-:,'Q'
0
--
Raul
On Wed, Aug 30, 2023 at 2:19 PM Dimitri Georganas wrote:
>
> Hi all,
>
> Small problem or
'Q'-:,'Q'
0
--
Raul
On Wed, Aug 30, 2023 at 2:19 PM Dimitri Georganas wrote:
>
> Hi all,
>
> Small problem or newbie trap? After loading a table using 'tables/csv' (or
> tables/dsv' - doesn't matter), I noticed that single characters are not
> being matched using the below approach. (J
Hi all,
Small problem or newbie trap? After loading a table using 'tables/csv' (or
tables/dsv' - doesn't matter), I noticed that single characters are not
being matched using the below approach. (J version 9.4) on Ubuntu Linux
22.04.
Is there some hidden character that causes the match to fail?