[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
casereader numbering
From: |
John Darrington |
Subject: |
casereader numbering |
Date: |
Thu, 17 Jul 2008 19:31:30 +0800 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
I've started rewriting EXAMINE to make it less crappy.
One thing that would make it easier would be a function of the form
struct casereader * append_case_numbers (struct casereader *cr);
which returns a new casereader which is identical to CR except that it
has one extra column which contains the ordinal number of each case.
For example if CR contains
x y
z .
a b
c d
the return will contain
x y 1
z . 2
a b 3
c d 4
Such a function would also simply the implementation of RANK. But
it's not obvious to me how to create such a function.
Is this a feasible thing to do?
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- casereader numbering,
John Darrington <=