Re: Counting Runs
- To: mathgroup at smc.vnet.net
- Subject: [mg52018] Re: Counting Runs
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 7 Nov 2004 01:03:46 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 11/6/04 at 2:08 AM, drbob at bigfoot.com (DrBob) wrote: >And the new winner -- for both speed and simplicity -- is: >brt4[v_List] := Frequencies@Split[v][[All, 1]] Where is the function Frequencies to be found? If it is the function found in Statistics`DataManipulation` then that is coded {Length[#],First[#]}&/@Split[Sort[list]] Since this the same as one of your other suggestions, how can using this version of Frequencies be faster? -- To reply via email subtract one hundred and four
- Follow-Ups:
- Re: Re: Counting Runs
- From: DrBob <drbob@bigfoot.com>
- Re: Re: Counting Runs