rebase: Rebase a factor's level

View source: R/rnaseq.r

rebaseR Documentation

Rebase a factor's level

Description

Change a factor's reference level

Usage

rebase(x, lev)

Arguments

x

A factor to be rebased

lev

The level of the factor that is to be regarded as the 'control' to which all others will be compared

Details

Rather than change the order of the levels, this changes the way the factor is parametrised, so that the levels are in the natural order but the coefficients can reflect experimental design considerations

Value

A factor with a new contrast attribute

Author(s)

Gavin Kelly


FrancisCrickInstitute/DESdemonA documentation built on Jan. 2, 2023, 8:08 p.m.