Sorts a dataset by the given columns in either ascending (:asc)
or descending (:desc) order. If used within a the body of
the with-data macro, the data argument is optional, defaulting
to the dataset bound to the variable $data.
Examples:
(use '(incanter core charts datasets))
(def iris (get-datset :iris))
(view ($order :Sepal.Length :asc iris))
(view ($order [:Sepal.Width :Sepal.Length] :desc iris))
(with-data (get-dataset :iris)
(view ($order [:Petal.Length :Sepal.Length] :desc)))
Comments top
No comments for $order. Log in to add a comment.