recode_within: Recode nested factors

View source: R/rnaseq.r

recode_withinR Documentation

Recode nested factors

Description

Recode nested factors to avoid matrix-rank problems

Usage

recode_within(inner, ...)

Arguments

inner

A factor representing the variable to be recoded, e.g. the cell-line

...

The parent factors that 'inner' is inside, e.g. the genotype of the cell-line

Details

Following the suggestion in the DESeq2 vignette, recode nested factors so that they take common values in different clusters to avoid rank problems

Value

A factor with recoded levels

Author(s)

Gavin Kelly


crickbabs/RNASeq-DESeq documentation built on Jan. 7, 2023, 11:23 p.m.