Skip to content

Instantly share code, notes, and snippets.

@seb231
Created August 25, 2016 12:54
Show Gist options
  • Save seb231/1bb3b9e9fccba67f3a3f0a1a420ad6d6 to your computer and use it in GitHub Desktop.
Save seb231/1bb3b9e9fccba67f3a3f0a1a420ad6d6 to your computer and use it in GitHub Desktop.
(map (fn [year] (map (fn [age] (vec [gss-code age year (reduce + ($ :popn (-> (query-dataset foo {:year {:$eq year}})
(query-dataset {:age age})
)))])) age-range)) year-range)
(def age-range (range 0 91))
(def year-range (range 2001 2041))
(def gss-code "E06000023")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment