dim {PhenStat} | R Documentation |
Retrieve the number of rows (measures) and columns (parameters) for a PhenList object.
## S3 method for class 'PhenList' dim(x)
x |
an object of class |
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.
Numeric vector of length 2. The first element is the number of rows (measures) and the second is the number of columns (parameters).
Natalja Kurbatova
dim
in the base package.
file <- system.file("extdata", "test1.csv", package="PhenStat") test <- PhenStat:::PhenList(dataset=read.csv(file,na.strings = '-'), testGenotype="Sparc/Sparc") PhenStat:::dim.PhenList(test)