Database Reference
In-Depth Information
Also, in your REPL or your ile, include these lines:
(use 'incanter.core
'incanter.io)
Finally, downloaded a list of rest area locations from POI Factory at
http://www.poi-
BN).csv
. The version designation might be different though, as the ile is updated. You'll also
need to register on the site in order to download the data. The ile contains this data, which is
the location and description of the rest stops along the highway:
-67.834062,46.141129,"REST AREA-FOLLOW SIGNS SB I-95 MM305","RR, PT,
Pets, HF"
-67.845906,46.138084,"REST AREA-FOLLOW SIGNS NB I-95 MM305","RR, PT,
Pets, HF"
-68.498471,45.659781,"TURNOUT NB I-95 MM249","Scenic Vista-NO
FACILITIES"
-68.534061,45.598464,"REST AREA SB I-95 MM240","RR, PT, Pets, HF"
In the project directory, we have to create a subdirectory named
data
and place the ile in
this subdirectory.
I also created a copy of this ile with a row listing the names of the columns and named it
RestAreasCombined(Ver.BN)-headers.csv
.
How to do it…
1.
Now, use the
incanter.io/read-dataset
function in your REPL:
user=> (read-dataset "data/RestAreasCombined(Ver.BJ).csv")
| :col0 | :col1 | :col2
| :col3 |
|------------+-----------+--------------------------------------+-
---------------------------|
| -67.834062 | 46.141129 | REST AREA-FOLLOW SIGNS SB I-95 MM305 |
RR, PT, Pets, HF |
| -67.845906 | 46.138084 | REST AREA-FOLLOW SIGNS NB I-95 MM305 |
RR, PT, Pets, HF |
| -68.498471 | 45.659781 | TURNOUT NB I-95 MM249 |
Scenic Vista-NO FACILITIES |
| -68.534061 | 45.598464 | REST AREA SB I-95 MM240 |
RR, PT, Pets, HF |
| -68.539034 | 45.594001 | REST AREA NB I-95 MM240 |
RR, PT, Pets, HF |
…