in reply to Re: Tabulating Data Across Multiple Large Files
in thread Tabulating Data Across Multiple Large Files

The data looks like this:
1,Case,Iter,Fusion,Type,Tanks,AFVs,ADAs,IFVs,UAVS,Unknown,Total, Latency, Decoys
,FalseNeg, FalsePos
32,A2,1,UE_Battle_Bde,TRUTH,0,0,0,0,0,0,0,0,0
32,A2,1,UE_Battle_Bde,PERCEIVED,0,0,0,0,0,0,0,0,0,0,0
32,A2,1,UE_Battle_Bde,FREQUENCIES,0,0,0,0,0
32,A2,1,UA1,TRUTH,0,0,0,0,0,0,0,0,0
32,A2,1,UA1,PERCEIVED,0,0,0,0,0,0,0,0,0,0,0
32,A2,1,UA1,FREQUENCIES,0,0,0,0,0
35,A2,1,UE_Battle_Bde,TRUTH,0,0,0,0,0,0,0,0,0
35,A2,1,UE_Battle_Bde,PERCEIVED,0,0,0,0,0,0,0,0,0,0,0
35,A2,1,UE_Battle_Bde,FREQUENCIES,0,0,0,0,0

Within the time steps (32 and 35 shown here), I am matching rows that share the same columns titled Case, Fusion and Type. Then, within each line that has the same Time, Case, Fusion and Type I am averaging all the other columns (0s here).

  • Comment on Re: Re: Tabulating Data Across Multiple Large Files

Replies are listed 'Best First'.
Re^3: Tabulating Data Across Multiple Large Files
by Aristotle (Chancellor) on Mar 22, 2003 at 22:02 UTC
    Are the files guaranteed to be sorted by time steps? That would make things pretty easy. Also, the question about what function that file 0 has still stands.

    Makeshifts last the longest.

      As to the file 0 question: No. File 0 probably has most of what I'm looking to match in files 1, 2 ... N - but that's not guaranteed. For example, file 0 may not have a time step at 37, but file 34 will.

      As to the sort question: Yes. Each file is sorted by time step.