Database Reference
In-Depth Information
How to do it…
Incanter makes this very easy. Let's take a look at just how simple it is:
1.
First, we need to load the dataset, as follows:
user=> (def iris (get-dataset :iris))
#'user/iris
2.
Then we just call view on the dataset:
user=> (view iris)
This function returns the Swing window frame, which contains our data, as shown in the
following screenshot. This window should also be open on your desktop, although for me,
it's usually hiding behind another window:
How it works…
Incanter's view function takes any object and tries to display it graphically. In this case, it
simply displays the raw data as a table. We'll use this function a lot in Chapter 11 , Graphing in
Incanter , when we talk about Incanter's graphing functionality.
See also…
F Chapter 11, Graphing in Incanter , for more sophisticated and exciting ways to
visualize Incanter datasets
 
Search WWH ::




Custom Search