Description Usage Arguments Details Value Author(s) See Also Examples
Retrieve the number of rows (measures) and columns (parameters) for a PhenList object.
1 2 | ## 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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.