<stats:bin_numeric_2d>

Computes 2-dimensional binning.

Description

Computes 2-dimensional binning. Returns a row for each non-empty bin.

(Available as of version 21.00)

Syntax

<stats:bin_numeric_2d breaks="[BREAKS]" colx="[X COLUMN]" coly="[Y COLUMN]" nbins="[NUM BINS]" remove_na="1|0" 
    cnt_name="[CNT_NAME]" minx="[X MINIMUM]" maxx="[X MAXIMUM]" scalex="linear|log10"  miny="[Y MINIMUM]" 
    maxy="[Y MAXIMUM]" scaley="linear|log10" density="0|1" binbybrks="0|1"/>

Attributes

breaks
Perform 2d binning for each break.
colx
x column for binning.
coly
y column for binning.
nbins
Number of bins, defaults to 20. Ignored if both colx and coly are of type text, or cnt_as_text is 1.
remove_na
Convenience attribute to select out NAs before binning, default is 1.
cnt_name
Set name of count result, defaults to count.
minx
Select minimum value for colx, maybe be helpful for highly skewed data. Ignored if binbybrks is 1.
maxx
Select maximum value for colx, maybe be helpful for highly skewed data. Ignored if binbybrks is 1.
scalex
Compute x column binning in linear or log10 scale, defaults to linear.
miny
Select minimum value for coly, maybe be helpful for highly skewed data. Ignored if binbybrks is 1.
maxy
Select maximum value for coly, maybe be helpful for highly skewed data. Ignored if binbybrks is 1.
scaley
Compute y column binning in linear or log10 scale, defaults to linear.
density
Compute density for each bin, defaults to 0.
binbybrks
If 1 the determination of the bin locations is performed separately for each break. If 0 all breaks share the same bin locations. Default is 0.