splitMatrix: Split a matrix into sub matrices.

Description Usage Arguments Value Author(s) See Also Examples

Description

This function is similar to split() but returns a list of (sub-)matrices.

Usage

1
splitMatrix(x, col = 1)

Arguments

x

a matrix

col

column defining the grouping of the matrix

Value

A list of sub matrices.

Author(s)

Johannes Freudenberg

See Also

split

Examples

1
2
3
x <- matrix(1:30, 6, 5)
x[,1] <- rep(1:3, times=2)
splitMatrix(x)

uc-bd2k/gimmR documentation built on May 3, 2019, 2:15 p.m.