I am trying to follow the example in Clojure Data Analasys Cookbook. I am using LightTable to play with the program. The first example shows how to read in .csv data.
I used lein new getting-data. I then added the two dependencies to the project file
(defproject getting-data "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [
[org.clojure/clojure "1.5.1"]
[incanter/incanter-core "1.4.1"]
[incanter/incanter-io "1.4.1"]
]
)
Then in the core.clj file I say as below, using cmd-shift-enter in LightTable to evaluate the program, but I get those exceptions:
(use 'incanter.core 'incanter.io)
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: use in this context, compiling:(/Users/idf/Documents/clojure/getting-data/src/getting_data/core.clj:1:1)
(read-dataset "data/small-sample.csv")
clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: read-dataset in this context, compiling:(/Users/idf/Documents/clojure/getting-data/src/getting_data/core.clj:4:1)
Not sure what I am doing wrong?