dim {PhenStat} | R Documentation

## Method "dim"

### Description

Retrieve the number of rows (measures) and columns (parameters) for a PhenList object.

### Usage

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

### Arguments

`x` | an object of class `PhenList`

### Details

These methods allow one to extract the size of phenotypic data objects in the same way that one would do for ordinary matrices.

A consequence is that row and column commands `nrow(x)`, `ncol(x)` and so on also work.

### Value

Numeric vector of length 2. The first element is the number of rows (measures) and the second is the number of columns (parameters).

### Author(s)

Natalja Kurbatova

### See Also

`dim` in the base package.

### Examples

        file <- system.file("extdata", "test1.csv", package="PhenStat")
        test <- PhenStat:::PhenList(dataset=read.csv(file,na.strings = '-'),
                testGenotype="Sparc/Sparc")
        PhenStat:::dim.PhenList(test)

[Package PhenStat version 2.28.0 Index]