Re: [Jgeneral] problem matching single characters in boxed data from file

2023-08-30 Thread Dimitri Georganas
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

Re: [Jgeneral] problem matching single characters in boxed data from file

2023-08-30 Thread 'Pascal Jasmin' via General
,$ &> ;: '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

Re: [Jgeneral] problem matching single characters in boxed data from file

2023-08-30 Thread Raul Miller
'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

[Jgeneral] problem matching single characters in boxed data from file

2023-08-30 Thread Dimitri Georganas
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?