This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-18
Channels
- # admin-announcements (3)
- # arachne (8)
- # beginners (55)
- # boot (51)
- # cbus (1)
- # cider (15)
- # cljs-dev (5)
- # cljsrn (8)
- # clojure (203)
- # clojure-austin (2)
- # clojure-belgium (12)
- # clojure-boston (6)
- # clojure-czech (47)
- # clojure-dusseldorf (14)
- # clojure-estonia (1)
- # clojure-greece (42)
- # clojure-japan (2)
- # clojure-poland (4)
- # clojure-russia (97)
- # clojure-sg (5)
- # clojure-uk (41)
- # clojurescript (122)
- # code-reviews (4)
- # component (3)
- # core-matrix (19)
- # cursive (25)
- # datomic (16)
- # devcards (24)
- # editors (6)
- # euroclojure (1)
- # hoplon (88)
- # immutant (3)
- # incanter (4)
- # jobs (5)
- # keechma (1)
- # luminus (1)
- # om (44)
- # onyx (22)
- # parinfer (3)
- # planck (1)
- # proton (3)
- # re-frame (5)
- # reagent (30)
- # ring (2)
- # spacemacs (1)
- # untangled (92)
- # yada (1)
otfrom: it seems to be only a selection by index. It makes sense for matrices, but for datasets I'd like to be able to select for when a value in column :a
is equal to a 10 for example.
hmmm... getting this atm:
(require [clojure.core.matrix.selection :as $])
CompilerException java.lang.ClassNotFoundException: clojure.core.matrix.selection, compiling:(*cider-repl matty*:53:12)
eleonore: I mean sel in clojure.core.matrix.selection as opposed to the select you were looking at
eleonore: does this style not work for you? (sel [[-1 0][1 2]] (where pos?)) ;=> [1 2]
otfrom: I got an error when trying it with column name. I'm not using matrices but datasets.
otfrom: I'm sure of it, yes! I just wanted to know if I could do this using core.matrix instead of having an extra dependency to handle my datasets