class.factor.format {MCRestimate}R Documentation

A function for creating a factor from the phenoData slot of an exprSet

Description

This function creates a factor whose levels represent the different classes for a classification problem. It is derived from the column specified in the argument class.column. If the factor has more than two levels, the argument reference.class can be used to transform this into a two-class problem: reference class versus the rest.

Usage

class.factor.format(x, class.column, reference.class=NULL)

Arguments

x an exprSet
class.column either a number or a character string specifying the relevant column of the phenoData slot in x
reference.class character. If specified the result will be is a factor with only 2 levels: the reference class versus all other

Value

A factor of length nrow(pData(x))

Author(s)

Markus Ruschhaupt mailto:m.ruschhaupt@dkfz.de

Examples

library(MCRestimate)
data(eset)
class.factor.format(eset, "cov3",reference.class=1)

[Package MCRestimate version 1.4.0 Index]