rStats.js v1.3.0
    Preparing search index...

    Interface TapplyResult<R>

    Result of tapply.

    interface TapplyResult<R> {
        dim: number[];
        dimnames: GroupingLevel[][];
        values: [R] extends [number] ? number[] : (R | null)[];
    }

    Type Parameters

    • R
    Index
    dim: number[]

    The number of levels of each factor.

    dimnames: GroupingLevel[][]

    The levels of each factor (numbers as numbers).

    values: [R] extends [number] ? number[] : (R | null)[]

    The cells in column-major order (the first factor varies fastest). When the function gave a single number for every non-empty cell, numbers with NaN for the empty cells; otherwise the function's results, null for the empty cells.