0

How can I shuffle a incanter dataset?

(shuffle (:rows data-set))

Only returns a clojure vector of maps.

Velrok
  • 345
  • 4
  • 17

1 Answers1

2

This worked for me:

(col-names data-set)
(dataset (col-names data-set)
         (shuffle (:rows data-set)))

Attention: dataset is the incanter data set type. While data-set is a instance of that type which contains my data.

ZeissS
  • 11,867
  • 4
  • 35
  • 50
Velrok
  • 345
  • 4
  • 17