Re: freq function

2010-08-22 Thread Peter Otten
Dirk Nachbar wrote: > Here is a function which takes any list and creates a freq table, > which can be printed unsorted, sorted by cases or items. It's supposed > to mirror the proc freq in SAS. > > Dirk > > def freq(seq,order='unsorted',prin=True): > #order can be unsorted, cases, items >

Re: freq function

2010-08-22 Thread Chris Rebert
On Sun, Aug 22, 2010 at 1:16 AM, Shashwat Anand wrote: > On Sun, Aug 22, 2010 at 1:31 PM, Dirk Nachbar wrote: >> Here is a function which takes any list and creates a freq table, >> which can be printed unsorted, sorted by cases or items. It's supposed >> to mirror the proc freq in SAS. >> >> Dir

Re: freq function

2010-08-22 Thread Shashwat Anand
On Sun, Aug 22, 2010 at 1:31 PM, Dirk Nachbar wrote: > Here is a function which takes any list and creates a freq table, > which can be printed unsorted, sorted by cases or items. It's supposed > to mirror the proc freq in SAS. > > Dirk > > def freq(seq,order='unsorted',prin=True): >#order ca