Learn R Programming

SNSequate (version 1.3.1)

rowBlockSum: Take a matrix and sum blocks of rows

Description

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.

Usage

rowBlockSum(mat, blocksize, w = NULL)

Arguments

mat

Input matrix

blocksize

Size of the row blocks

w

(Optional) Vector for weighted sum

Value

Matrix