Liking cljdoc? Tell your friends :D
Clojure only.

datajure.join

Join functions for datajure. Wraps tech.v3.dataset.join/pd-merge for regular joins and datajure.asof for as-of joins.

Join functions for datajure. Wraps tech.v3.dataset.join/pd-merge for
regular joins and datajure.asof for as-of joins.
raw docstring

joinclj

(join left
      right
      &
      {:keys [on left-on right-on how validate report]
       :or {how :inner report false}})

Join two datasets. Returns a dataset.

Options (keyword args): :on — column keyword or vector of keywords (same name in both datasets) :left-on — column keyword(s) for left dataset (use with :right-on) :right-on — column keyword(s) for right dataset (use with :left-on) :how — join type: :inner (default), :left, :right, :outer, :asof :validate — cardinality check: :1:1, :1:m, :m:1, :m:m :report — if true, print merge diagnostics (matched/left-only/right-only)

Must provide either :on or both :left-on and :right-on.

As-of join (:how :asof): The last column in :on (or :left-on/:right-on) is the asof column — each left row is matched to the last right row where right-key <= left-key. Preceding columns are exact-match keys. All left rows are preserved; unmatched rows get nil for right columns.

Join two datasets. Returns a dataset.

Options (keyword args):
  :on        — column keyword or vector of keywords (same name in both datasets)
  :left-on   — column keyword(s) for left dataset (use with :right-on)
  :right-on  — column keyword(s) for right dataset (use with :left-on)
  :how       — join type: :inner (default), :left, :right, :outer, :asof
  :validate  — cardinality check: :1:1, :1:m, :m:1, :m:m
  :report    — if true, print merge diagnostics (matched/left-only/right-only)

Must provide either :on or both :left-on and :right-on.

As-of join (:how :asof):
  The last column in :on (or :left-on/:right-on) is the asof column —
  each left row is matched to the last right row where right-key <= left-key.
  Preceding columns are exact-match keys. All left rows are preserved;
  unmatched rows get nil for right columns.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close