Browse files

Adding a section to the README regarding the crunching of data.

  • Loading branch information...
brycethornton committed Jun 24, 2011
1 parent 63fcf7f commit 12120f0fe0841e9ca33079a06731ba4d965d4b0f
Showing with 22 additions and 0 deletions.
  1. +22 −0
@@ -44,6 +44,28 @@ Add your new file in the `/js/datasets/` directory with a name that matches the
It's important to include the source of the data used so that others can verify and reproduce the results.
+## Crunching the data
+Generating Benford stats is a fairly straightforward process. We've made a simple ruby class for you to use if you'd like.
+First, grab a copy of the class from here:
+Second, include the class in your script like so:
+require 'benford_counter'
+require 'rubygems'
+require 'csv'
+counter =
+CSV.foreach("spain.txt") do |row|
+ counter.count(row[9])
## Updating Javascript and CSS
We're using CoffeeScript for the Javascript and Sass/Compass for the CSS.

0 comments on commit 12120f0

Please sign in to comment.