tables

This is a tool to allow you to import data (in seemingly-table-like format) and ask questions, such as sum, median, mean, etc. about it.

files

mactables.app.zip    ( hint: unzip it first )
windozetables.exe
jartables.jar
sourcetables.tar.gz
javadocsapi

usage

  • Select some text on a web page or a CSV file or something:
  • Select 'Paste' and paste this text into the buffer and click 'OK' to import:
  • Click 'OK' to import this data:
  • Select the data in the table you want to insepect
  • Control-click the selection and select what you'd like to know about this data ...
  • ... and the result pops up.

extending

Extending this system is easy. To do so put instances of Fold on your classpath and start up. Fold looks like this.

interface Fold {
  String name();
  Object fold(List values);
}

There are also some utility classes, such as AbstractFold and NumericFold, for a complete list see the javadocs. A simple implementation is sum:

public class Sum extends NumericFold {
  double doFold(double[] vals) {
    double res = 0;
    for (int i=0; i<vals.length; i++) res += vals[i];
    return res;
  }
}