Learn R Programming

AssocBin (version 1.1-0)

splitX: Helper functions for marginal splitting

Description

These functions are helpers to safely split bins along X or Y.

Usage

splitX(bin, bd, above, below)

splitY(bin, bd, above, below)

Value

A list of two bins resulting from the split of `bin` at `bds`.

Arguments

bin

a bin to be split with elements `x`, `y`, `depth`, `bnds` (list with elements `x` and `y`), `expn`, `n`

bd

numeric split point within the bin bounds

above

indices of `x` and `y` points in the bin above `bd`

below

indices of `x` and `y` points in the bin below `bd`

Functions

  • splitX(): Splitting on x

  • splitY(): Splitting on y

Author

Chris Salahub

Details

These unexported functions have been defined primarily to clean up other code, but could be changed to obtain different core functionality.