Skip to content
Browse files

Updated to remove couple of reflection warnings and cleaned up whites…


	modified:   project.clj
	modified:   src/incanter/core.clj
  • Loading branch information...
1 parent 1c1cb32 commit afe0549d3f155c784379cf934115a3e76c1ee1bd Shanmuhanathan Thiagaraja committed
1  modules/incanter-core/project.clj
@@ -15,4 +15,3 @@
;;; Clojars or Maven central yet.
:repositories {"snapshots" {:url ""}}
8 modules/incanter-core/src/incanter/core.clj
@@ -54,7 +54,7 @@
(def ^{:dynamic true
:doc "This variable is bound to a dataset when the with-data macro is used.
- functions like $ and $where can use $data as a default argument."}
+ functions like $ and $where can use $data as a default argument."}
(defrecord Dataset [column-names rows])
@@ -292,7 +292,7 @@
cols cols
except-cols (except-for (.columns mat) except-cols)
:else true)
- mat (if (nil? filter) mat (matrix (filter filter mat)))
+ ^Matrix mat (if (nil? filter) mat (matrix (filter filter mat)))
all-rows? (or (true? rows) (= rows :all))
all-cols? (or (true? cols) (= cols :all))]
@@ -373,7 +373,7 @@
([& args]
- (fn [A B] (.viewDice (bind-rows (trans A) (trans B))))
+ (fn [A B] (.viewDice ^Matrix (bind-rows (trans A) (trans B))))
@@ -1597,7 +1597,7 @@ altering later ones."
(head 10 mat)))
-(defn $where
+(defn $where
"An alias to (query-dataset (second args) (first args)). If given only a single argument,
it will use the $data binding for the first argument, which is set with
the with-data macro.

0 comments on commit afe0549

Please sign in to comment.
Something went wrong with that request. Please try again.