Liking cljdoc? Tell your friends :D

datajure.concise

Opt-in short aliases for power users. Refer the symbols you want: (require '[datajure.concise :refer [mn sm mx mi N dt fst lst wa ws]])

Aggregation helpers (operate on column vectors — use in :agg plain fns or directly): mn = mean sm = sum md = median sd = standard-deviation ct = count* (non-nil count) nuniq = count-distinct fst = first-val (first element) lst = last-val (last element) wa = wavg (weighted average) ws = wsum (weighted sum) cov = sample covariance of two columns corr = sample Pearson correlation of two columns tstat = one-sample t-statistic (mean / (sd / sqrt n)) mx = max* (column maximum) mi = min* (column minimum)

Statistical transforms (use inside #dt/e expressions as stat/* — these are direct refs to the runtime fns, useful outside #dt/e): standardize = stat/stat-standardize demean = stat/stat-demean winsorize = stat/stat-winsorize trim = stat/stat-trim rescale = stat/stat-rescale

Column selectors: col-range = positional range selector (core/col-range)

Everything else re-exported from datajure.core: N, dt, dt1, asc, desc, rename, pass-nil

Opt-in short aliases for power users.
Refer the symbols you want: (require '[datajure.concise :refer [mn sm mx mi N dt fst lst wa ws]])

Aggregation helpers (operate on column vectors — use in :agg plain fns or directly):
  mn    = mean
  sm    = sum
  md    = median
  sd    = standard-deviation
  ct    = count* (non-nil count)
  nuniq = count-distinct
  fst   = first-val (first element)
  lst   = last-val (last element)
  wa    = wavg (weighted average)
  ws    = wsum (weighted sum)
  cov   = sample covariance of two columns
  corr  = sample Pearson correlation of two columns
  tstat = one-sample t-statistic (mean / (sd / sqrt n))
  mx    = max* (column maximum)
  mi    = min* (column minimum)

Statistical transforms (use inside #dt/e expressions as stat/* — these are
direct refs to the runtime fns, useful outside #dt/e):
  standardize = stat/stat-standardize
  demean      = stat/stat-demean
  winsorize   = stat/stat-winsorize
  trim        = stat/stat-trim
  rescale     = stat/stat-rescale

Column selectors:
  col-range = positional range selector (core/col-range)

Everything else re-exported from datajure.core:
  N, dt, dt1, asc, desc, rename, pass-nil
raw docstring

ascclj

Ascending sort spec. Re-exported from datajure.core/asc.

Ascending sort spec. Re-exported from `datajure.core/asc`.
sourceraw docstring

col-rangeclj

Positional column-range selector. Re-exported from datajure.core/col-range. Returns a selector map for use with :select in dt. Example: (dt ds :select (col-range :month-01 :month-12))

Positional column-range selector. Re-exported from `datajure.core/col-range`.
Returns a selector map for use with :select in dt.
Example: (dt ds :select (col-range :month-01 :month-12))
sourceraw docstring

corrclj

Sample Pearson correlation. Delegates to expr/corr. Args: x-col y-col; skips nil pairs.

Sample Pearson correlation. Delegates to `expr/corr`. Args: x-col y-col; skips nil pairs.
sourceraw docstring

covclj

Sample covariance. Delegates to expr/cov. Args: x-col y-col; skips nil pairs.

Sample covariance. Delegates to `expr/cov`. Args: x-col y-col; skips nil pairs.
sourceraw docstring

ctclj

Count of non-nil values. Short alias for core/count* — matching the #dt/e ct op and the documented concise vocabulary (was dtype/ecount, which counted missing slots too; that drift from the docs/DSL is fixed).

Count of non-nil values. Short alias for `core/count*` — matching the
#dt/e `ct` op and the documented concise vocabulary (was `dtype/ecount`, which
counted missing slots too; that drift from the docs/DSL is fixed).
sourceraw docstring

demeanclj

Demean a column: x - mean(x). Delegates to stat/stat-demean.

Demean a column: x - mean(x). Delegates to `stat/stat-demean`.
sourceraw docstring

descclj

Descending sort spec. Re-exported from datajure.core/desc.

Descending sort spec. Re-exported from `datajure.core/desc`.
sourceraw docstring

dtclj

Main query function. Re-exported from datajure.core/dt.

Main query function. Re-exported from `datajure.core/dt`.
sourceraw docstring

dt1clj

dt returning the single result row as a plain map (scalar reads from whole-table :agg). Re-exported from datajure.core/dt1.

dt returning the single result row as a plain map (scalar reads from whole-table :agg). Re-exported from `datajure.core/dt1`.
sourceraw docstring

fstclj

First value in a column. Delegates to expr/first-val.

First value in a column. Delegates to `expr/first-val`.
sourceraw docstring

lstclj

Last value in a column. Delegates to expr/last-val.

Last value in a column. Delegates to `expr/last-val`.
sourceraw docstring

mdclj

Column median. Short alias for core/median.

Column median. Short alias for `core/median`.
sourceraw docstring

miclj

Column minimum. Short alias for core/min*.

Column minimum. Short alias for `core/min*`.
sourceraw docstring

mnclj

Column mean. Short alias for core/mean.

Column mean. Short alias for `core/mean`.
sourceraw docstring

mxclj

Column maximum. Short alias for core/max*.

Column maximum. Short alias for `core/max*`.
sourceraw docstring

Nclj

Row count helper. Re-exported from datajure.core/N.

Row count helper. Re-exported from `datajure.core/N`.
sourceraw docstring

nuniqclj

Count of distinct values. Delegates to expr/count-distinct.

Count of distinct values. Delegates to `expr/count-distinct`.
sourceraw docstring

pass-nilclj

Nil-safe function wrapper. Re-exported from datajure.core/pass-nil.

Nil-safe function wrapper. Re-exported from `datajure.core/pass-nil`.
sourceraw docstring

qntclj

Type-7 p-quantile. Short alias for core/qnt. Args: col p [min-n].

Type-7 p-quantile. Short alias for `core/qnt`. Args: col p [min-n].
sourceraw docstring

renameclj

Rename columns. Re-exported from datajure.core/rename.

Rename columns. Re-exported from `datajure.core/rename`.
sourceraw docstring

rescaleclj

Min-max rescale a column to [0,1] (or [lo,hi]). Delegates to stat/stat-rescale. Args: col [new-lo new-hi].

Min-max rescale a column to [0,1] (or [lo,hi]). Delegates to `stat/stat-rescale`. Args: col [new-lo new-hi].
sourceraw docstring

sdclj

Column standard deviation. Short alias for core/stddev.

Column standard deviation. Short alias for `core/stddev`.
sourceraw docstring

smclj

Column sum. Short alias for core/sum.

Column sum. Short alias for `core/sum`.
sourceraw docstring

standardizeclj

Standardize a column: (x - mean) / sd. Delegates to stat/stat-standardize.

Standardize a column: (x - mean) / sd. Delegates to `stat/stat-standardize`.
sourceraw docstring

trimclj

Trim a column at tail probability p (outside values → nil). Delegates to stat/stat-trim. Args: col p.

Trim a column at tail probability p (outside values → nil). Delegates to `stat/stat-trim`. Args: col p.
sourceraw docstring

tstatclj

One-sample t-statistic: mean / (sd / sqrt n). Delegates to expr/tstat.

One-sample t-statistic: mean / (sd / sqrt n). Delegates to `expr/tstat`.
sourceraw docstring

waclj

Weighted average. Delegates to expr/wavg. Args: weight-col value-col.

Weighted average. Delegates to `expr/wavg`. Args: weight-col value-col.
sourceraw docstring

winsorizeclj

Winsorize a column at tail probability p. Delegates to stat/stat-winsorize. Args: col p [{:tail :both/:lower/:upper}].

Winsorize a column at tail probability p. Delegates to `stat/stat-winsorize`. Args: col p [{:tail :both/:lower/:upper}].
sourceraw docstring

wsclj

Weighted sum. Delegates to expr/wsum. Args: weight-col value-col.

Weighted sum. Delegates to `expr/wsum`. Args: weight-col value-col.
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