Re: [Jprogramming] detect number but survive also string input

2022-09-11 Thread lb_taylor
Hello.Could you please remove me from this distribution list for now?Thank you.Sallie -From: "Raul Miller" To: programm...@jsoftware.com Cc: Sent: Saturday September 10 2022 3:55:42PM Subject: Re: [Jprogramming] detect number but survive also strin

Re: [Jprogramming] detect number but survive also string input

2022-09-11 Thread 'Mike Day' via Programming
Doesn’t “unsubscribe” in the subject field do the trick for you? If you’re really sure you want to leave us... M Sent from my iPad > On 11 Sep 2022, at 16:28, lb_tay...@charter.net wrote: > > Hello.Could you please remove me from this distribution list for > now?Thank you.Sallie > >-

[Jprogramming] type-independent histogram/occurence count/frequency?

2022-09-11 Thread 'Viktor Grigorov' via Programming
Hey, Whilst getting back to a Markov text generator in J, I quickly came to the issue of all top-result verbs for histograms, found querying the wiki and the mailing lists, to be dealing with numeric types only. One'd have to reshape the items appropriately to a new dimension. But if one has n-

Re: [Jprogramming] type-independent histogram/occurence count/frequency?

2022-09-11 Thread 'Viktor Grigorov' via Programming
Deleted too much: "One'd have to reshapre items appropriate, adding a dimension, to deal with lists." is what I meant to write. Sep 12, 2022, 07:50 by programm...@jsoftware.com: > Hey, > > Whilst getting back to a Markov text generator in J, I quickly came to the > issue of all top-result verbs

Re: [Jprogramming] type-independent histogram/occurence count/frequency?

2022-09-11 Thread Elijah Stone
It would be helpful to know what code you were using that was not working on symbols and boxes. One quick solution is x ({.,#)/. i.#x; that gives a two-column table whose first column gives indices and whose second column gives the count of elements at the corresponding index. Faster is to sep

Re: [Jprogramming] type-independent histogram/occurence count/frequency?

2022-09-11 Thread 'Viktor Grigorov' via Programming
I'd tried histogram =: <: @ (#/.~) @ (i.   @#@[ , I.) histogram1=: <: @ (#/.~) @ (i.@>:@#@[ , I.) freqcount from stats addon and another one copied from mailing list, lost to time. I hadn't tried #/.~ , found in the Reflexive phrases page which shows up on the search, which makes me look silly now