Retrieve the dimension of microarray objects

Share:

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'maigesPreRaw'
dim(x)

## S3 method for class 'maigesRaw'
dim(x)

## S3 method for class 'maiges'
dim(x)

## S3 method for class 'maigesANOVA'
dim(x)

Arguments

x

an object of class maigesPreRaw, maigesRaw, maiges or maigesANOVA

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.

Value

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

Author(s)

modified from the marray package

See Also

dim in the base package.

Examples

1
2
3
4
5
6
7

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.