cr_group: Create 'cr_group' object

Description Usage Arguments Author(s)

View source: R/cr_group.r

Description

Sets the 'rgroup' and 'cgroup' attributes and returns a 'cr_group' object. These can also be set with attr, but this functions checks that the dimensionality is OK.

Usage

1
cr_group(x, rgroup, cgroup, colnames)

Arguments

x

the object (typically a matrix och data frame)

rgroup

the 'rgroup' attribute with length equal to dim(object)[1]

cgroup

the 'cgroup' attribute with length equal to dim(object)[2]

colnames

use this to set colnames (class cr_group can keep track of these under permutations (if object is 'data.frame' colnames are dropped under permuation)

Author(s)

Henrik Renlund


renlund/dataman documentation built on May 27, 2019, 5:51 a.m.