Learn R Programming

maigesPack (version 1.30.0)

dim: Retrieve the dimension of microarray objects

Description

Generic function dim to retrieve the number of rows (genes) and columns (arrays) for classes maigesPreRaw, maigesRaw, maiges and maigesANOVA.

Usage

"dim"(x)
"dim"(x)
"dim"(x)
"dim"(x)

Arguments

x
an object of class maigesPreRaw, maigesRaw, maiges or maigesANOVA

Value

Vector with 2 numbers, the first one is the number of rows (genes) and the second one the number of columns (samples).

Details

This is a function to retrieve the dimensions of the dataset - number of genes (rows) and samples (columns) studied. Note that the commands nrow(x), ncol(x) and commands related with matrix dimensions on also work.

See Also

dim in the base package.

Examples

Run this code
## Loading the dataset
data(gastro)

dim(gastro)
dim(gastro.raw)
dim(gastro.norm)
dim(gastro.summ)

Run the code above in your browser using DataLab