(into-maps rows)
Translates rows with STAN's output key names (eg. :mu.1.1
,
:mu.2.3
) into the natural clojure nested vectors.
Translates rows with STAN's output key names (eg. `:mu.1.1`, `:mu.2.3`) into the natural clojure nested vectors.
(read-stan-output filename)
Read a STAN output csv file, return a vector of clojure maps.
Read a STAN output csv file, return a vector of clojure maps.
(vec-assoc-in coll [k & ks :as korks] x)
A version of the assoc-in
function that defaults to vectors
rather than maps when adding a new integer key:
(vec-assoc-in {} [:a 0] "foo") => {:a ["foo"]}
This is not safe: (vec-assoc-in {} [:a 1] 2)
produces an index out
of range exception.
A version of the `assoc-in` function that defaults to vectors rather than maps when adding a new integer key: ```(vec-assoc-in {} [:a 0] "foo") => {:a ["foo"]}``` This is not safe: `(vec-assoc-in {} [:a 1] 2)` produces an index out of range exception.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close