split: Split Matrix by Rows and Columns

Description Usage Arguments Value Author(s) Examples

Description

Splits a matrix or data.frame into multiple groups by their rows or columns.

Usage

1
2
3

Arguments

x

an R object. Typically a matrix or data.frame to be divided into groups.

group

grouping variable for rows or columns used for dividing an object into groups. Can also be a list of groups in which case their interaction is used for grouping.

Value

transposed annmatrix object

Author(s)

Karolis Koncevičius

Examples

1
2
3
4
rsplit(iris, iris$Species)
csplit(iris, c(1,1,1,1,2))

rsplit(matrix(rnorm(20), nrow=5), c(1,1,2,2,3))

KKPMW/annmatrix documentation built on May 27, 2019, 11:42 a.m.