1.2.3-SNAPSHOT Arrow_down_16x16

data-table

incanter.core

  • (data-table data)
Creates a javax.swing.JTable given an Incanter dataset.

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:2486 top

(defn data-table
"Creates a javax.swing.JTable given an Incanter dataset."
  ([data]
   (let [col-names (:column-names data)
         column-vals (map (fn [row] (map #(row %) col-names)) (:rows data))
	 table-model (javax.swing.table.DefaultTableModel. (java.util.Vector. (map #(java.util.Vector. %) column-vals)) 
							   (java.util.Vector. col-names))]
     
     (javax.swing.JTable. table-model))))
Vars in incanter.core/data-table: defn let
Used in 0 other vars

Comments top

No comments for data-table. Log in to add a comment.