rowBlockSum: Take a matrix and sum blocks of rows

View source: R/helperfuncs.R

rowBlockSumR Documentation

Take a matrix and sum blocks of rows

Description

This function implements a method to sum blocks of rows in a matrix

Usage

rowBlockSum(mat, blocksize, w = NULL)

Arguments

mat

Input matrix

blocksize

Size of the row blocks

w

(Optional) Vector for weighted sum

Details

The original data set contains very long column headers. This function does a keyword search over the headers to find those column headers that match a particular keyword, e.g., mean, median, etc.

Value

A matrix.

Author(s)

Daniel Acuna Leon. dnacuna@uc.cl


SNSequate documentation built on Dec. 28, 2022, 1:35 a.m.