dim: Method "dim"

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
    ## 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

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

PhenStat documentation built on Nov. 8, 2020, 8:13 p.m.