Database Reference
In-Depth Information
How it works…
The $ function is just a wrapper over Incanter's sel function. It provides a good way to
slice columns out of the dataset, so we can focus only on the data that actually pertains
to our analysis.
There's more…
The indicator codes for this dataset are a little cryptic. However, the code descriptions are in
the dataset too:
user=> (i/$ [0 1 2] [:Indicator-Code :Indicator-Name] chn-data)
| :Indicator-Code |
:Indicator-Name |
|-------------------+-------------------------------------------------
--------------|
| AG.AGR.TRAC.NO | Agricultural
machinery, tractors |
| AG.CON.FERT.PT.ZS | Fertilizer consumption (% of
fertilizer production) |
| AG.CON.FERT.ZS | Fertilizer consumption (kilograms per hectare of
arable land) |
See also…
F For information on how to pull out speciic rows, see the next recipe, Selecting
rows with $ .
Selecting rows with $
The Incanter macro $ also pulls rows out of a dataset. In this recipe, we'll see this in action.
Getting ready
For this recipe, we'll use the same dependencies, imports, and data as we did in the Selecting
columns with $ recipe.
 
Search WWH ::




Custom Search