(defn nrow ^{:tag Integer :doc " Returns the number of rows in the given matrix. Equivalent to R's nrow function."} ([mat] (cond (matrix? mat) (.rows ^Matrix mat) (dataset? mat) (count (:rows mat)) (coll? mat) (count mat))))
Comments top
No comments for nrow. Log in to add a comment.