Learn R Programming

SNSequate (version 1.3-4)

rowBlockSum: 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)

Value

A matrix.

Arguments

mat

Input matrix

blocksize

Size of the row blocks

w

(Optional) Vector for weighted sum

Author

Daniel Acuna Leon. dnacuna@uc.cl

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.