Skip to contents

Builds the design matrix for designs of level 1

Usage

make.design.1(sTab)

Arguments

sTab

The data.frame which correspond to the pData() function of package MSnbase.

Value

A design matrix

Author

Thomas Burger, Quentin Giai-Gianetto, Samuel Wieczorek

Examples

data(Exp1_R25_pept, package='DaparToolshedData')
make.design.1(SummarizedExperiment::colData(Exp1_R25_pept))
#>      ConditionA ConditionB
#> [1,]          1          0
#> [2,]          1          0
#> [3,]          1          0
#> [4,]          0          1
#> [5,]          0          1
#> [6,]          0          1