No matching definitions.

frame/group

src/frame/group.tur
defn

agg-count

(agg-count :int)
defn

agg-sum

(agg-sum :int)
defn

agg-mean

(agg-mean :int)
defn

agg-min

(agg-min :int)
defn

agg-max

(agg-max :int)
defn

agg-median

(agg-median :int)
defn

agg-std

(agg-std :int)
defn

agg-var

(agg-var :int)
defn

grouped-count

(grouped-count [g :int] :int)

number of distinct groups. Since: FR5

defn

grouped-free

(grouped-free [g :int] :void)

release a grouped-frame handle (does NOT free the source frame).

Since: FR5

defn

group-by

(group-by [f :int names :int] :int)

partition a frame's rows by the named key columns.

fsource frame
namesVec[cstr] of key column names, built with (vec-of "k1" "k2" ...).
(Was a cons list of cstrs prior to 0.2.0.)

an opaque grouped-frame; release with grouped-free.

Since: FR5

defn

agg

(agg [g :int out-names :int in-names :int agg-tags :int] :int)

run aggregations over a grouped frame.

:int frame whose rows are one per group: [key-cols..., agg-outputs...].

Since: FR5

defn

summarize

(summarize [f :int out-names :int in-names :int agg-tags :int] :int)

whole-frame aggregation; returns a one-row frame.

Internal definitions
__g-nil
__g-cons
__g-vec-to-cons-- convert a Vec[cstr] (or any Vec[int]) to a cons list.
__g-list-length
__g-list-nth-int
__g-list-nth-cstr
__g-build-grouped-- given a frame, the parallel int list of key column
__g-names-to-ixs
__g-zeros
__g-list-to-perm-array
__group-by-cons-- internal cons-list group-by, used by intra-spice
__g-reduce-int64-- run an aggregation tag over a contiguous range of perm[lo..hi)
__g-reduce-float64
__g-group-empty?
__g-output-type-- determine the output column's type tag for an agg.
__g-fill-agg-col-- build a column for one aggregation over all groups.
__g-key-col-builder
__g-key-rep-rows
__g-rep-rows-free
__g-build-key-col-- materialize a key column for the result frame by
__so-take-bridge
__g-source-frame
__g-n-keys
__g-key-ix-at
__g-build-agg-frame
__g-build-key-cols
__g-build-key-fields
__g-build-agg-cols
__g-build-agg-fields
__g-list-concat
__g-make-identity-perm
__g-make-starts-array
__g-make-trivial-grouped