1.2.3-SNAPSHOT Arrow_down_16x16

bind-columns

incanter.core

  • (bind-columns & args)
Returns the matrix resulting from concatenating the given matrices
and/or sequences by their columns. Equivalent to R's cbind.

Examples:
(def A (matrix [[1 2 3]
[4 5 6]
[7 8 9]]))

(def B (matrix [10 11 12]))

(bind-columns A B)

(bind-columns [1 2 3 4] [5 6 7 8])


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

(defn bind-columns
"   Returns the matrix resulting from concatenating the given matrices
    and/or sequences by their columns. Equivalent to R's cbind.

    Examples:
      (def A (matrix [[1 2 3]
                     [4 5 6]
                     [7 8 9]]))

      (def B (matrix [10 11 12]))

      (bind-columns A B)

      (bind-columns [1 2 3 4] [5 6 7 8])


"
  ([& args]
   (reduce
    (fn [A B] (.viewDice (bind-rows (trans A) (trans B))))
    args)))
Vars in incanter.core/bind-columns: defn fn reduce
Used in 0 other vars

Comments top

No comments for bind-columns. Log in to add a comment.