1.2.3-SNAPSHOT permalink Arrow_down_16x16

to-map

incanter.core

Takes a dataset or matrix and returns a hash-map where the keys are
keyword versions of the column names, for datasets, or numbers, for
matrices, and the values are sequence of the column values.

Examples:
(use '(incanter core datasets))

(to-map (get-dataset :cars))

(to-map (matrix (range 9) 3))

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/core.clj:2081 top

(defmulti to-map
  "Takes a dataset or matrix and returns a hash-map where the keys are 
   keyword versions of the column names, for datasets, or numbers, for 
   matrices, and the values are sequence of the column values.

  Examples:
    (use '(incanter core datasets))

    (to-map (get-dataset :cars))

    (to-map (matrix (range 9) 3))

"
 type)
Vars in incanter.core/to-map: defmulti type
Used in 0 other vars

Comments top

No comments for to-map. Log in to add a comment.