Description Usage Arguments Value Author(s) Examples
View source: R/class.factor.format.R
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.
1 | class.factor.format(x, class.column, reference.class=NULL)
|
x |
an |
class.column |
either a number or a character string specifying
the relevant column of the phenoData slot in |
reference.class |
character vector. If specified the result will be a factor with only 2 levels: the reference class(es) versus all other |
A factor of length nrow(pData(x))
Markus Ruschhaupt mailto:m.ruschhaupt@dkfz.de
1 2 3 | library(golubEsets)
data(Golub_Train)
class.factor.format(Golub_Train[,28:35], "FAB",reference="M1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.