isDataFrame {made4} | R Documentation |
Converts input data into a data.frame suitable for analysis
in ADE4. This function is called by bga
and other made4
function
isDataFrame(dataset, pos = FALSE, trans = FALSE)
dataset |
A |
pos |
Logical indicating whether to add an integer to |
trans |
Logical indicating whether |
bga
and other functions in made4 call this function and it is generally not necessary to call isDataFrame
this directly.
isDataFrame calls asDataFrame
, and will accept a matrix
, data.frame
,
ExpressionSet
or marrayRaw-class or SummarizedExperiment
format.
It will also transpose data or add a integer to generate a positive data matrix.
If the input data contains missing values (NA), these must first be removed or imputed (see the R libraries impute() or pamr()).
Returns a data.frame suitable for analysis by ade4 or made4 functions.
Aedin Culhane
as
in Bioconductor
data(geneData) class(geneData) dim(geneData) dim(isDataFrame(geneData)) class(isDataFrame(geneData))