design_col: Extract/Change Column Names for a Design Matrix

Description Usage Arguments Value Examples

View source: R/design_col.R

Description

Extracts the column names for the design matrix stored in a designmatrix object. Column names can also be changed and updated in the object.

Usage

1
2
3
design_col(x)

design_col(x) <- value

Arguments

x

An object of class designmatrix.

Value

The column names of the design matrix stored internally.

Examples

1
2
3
4
5
6
# Example with R data set 'PlantGrowth'
dm = designmatrix( PlantGrowth, list( 'weight', 'group' ) )
design_col( dm )
# Change names
design_col( dm ) = c( 'Control', 'Treat.1', 'Treat.2' )
print( dm )

rettopnivek/designmatrix documentation built on Jan. 13, 2020, 7:09 p.m.