Liking cljdoc? Tell your friends :D

clj-stan.read-output


into-mapsclj

(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.
sourceraw docstring

read-stan-outputclj

(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.
sourceraw docstring

vec-assoc-inclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close