Incanter comes with a set of default datasets that are useful for exploring Incanter's functions. I haven't made use of them in this book, since there is so much data available at other places, but they're a great way to get a feel for what we can do with Incanter. Some of these datasets, for instance, the Iris dataset, are widely used for teaching. That's the dataset we'll access today.
In this recipe, we'll load a dataset and see what it contains.
We'll need to include Incanter in our Leiningen project.clj
file.
:dependencies [[org.clojure/clojure "1.4.0"] [incanter "1.4.1"]]
We'll also need to include the right Incanter namespaces into our script or REPL.
(use '(incanter core datasets))