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

    Interface MatrixOptions

    Options for matrix.

    interface MatrixOptions {
        byrow?: boolean;
        ncol?: number;
        nrow?: number;
    }
    Index
    byrow?: boolean

    Fill by rows instead of by columns (R's default). Default false.

    ncol?: number

    Number of columns (R's ncol). Default: the length of the data divided by nrow (rounded up), or 1 when nrow is not given either.

    nrow?: number

    Number of rows (R's nrow). Default: the length of the data divided by ncol (rounded up), or the length of the data when ncol is not given either.