asDataFrame {made4} | R Documentation

## Check that input data is a data.frame

### Description

This function is called by isDataFrame which converts input data into a data.frame suitable for analysis in ADE4. This function is not normally called by the user

### Usage

    asDataFrame(indata)

### Arguments

`indata` | A `matrix`, `data.frame`, `ExpressionSet` or `marrayRaw-class` or RangedSummarizedExperiment, SummarizedExperiment. If the input is gene expression data in a `matrix` or `data.frame`. The rows and columns are expected to contain the variables (genes) and cases (array samples) respectively.

### Details

`bga` and other functions in made4 call this function and it is generally not necessary to call this directly. `isDataFrame` calls `isDataFrame`, and will accept a `matrix`,`data.frame`, `ExpressionSet` or `marrayRaw-class`, SummarizedExperiment,RangedSummarizedExperiment format. It will also transpose data or add a integer to generate a positive data matrix. If the input data contains NA, these must first be removed or imputed (see the R libraries impute() or pamr()).

### Value

Returns a data.frame suitable for analysis by ade4 or made4 functions.

### Note

This is not normally called by a user. Internal function.

### Author(s)

Aedin Culhane

### See Also

`isDataFrame`

[Package made4 version 1.68.0 Index]