dim {IntervalQuestionStat} | R Documentation |
Get the number of rows and columns of an IntervalMatrix
object
Description
This function allows to get the number of rows and columns of an interval-valued matrix.
Usage
## S4 method for signature 'IntervalMatrix'
dim(x)
Arguments
x |
A matrix of interval-valued data stored as
an |
Value
This function returns a bidimensional vector with the number of rows
and columns, respectively, of an interval-valued matrix. Therefore,
it always returns an integer
object whose length is two.
Author(s)
José García-García garciagarjose@uniovi.es
See Also
The IntervalQuestionStat package also allows to obtain the number of
rows and columns of an IntervalMatrix
object separately through
nrow()
and ncol()
functions, respectively.
Examples
## Some dim() examples
data1 <- matrix(c(0, 1, 2, 3, 0, 3, 4, 9), 2, 4)
m1 <- IntervalMatrix(data1)
dim(m1)
data2 <- matrix(c(1, 5, 3, 2, 6, 4, 0, 1, 3,
2, 3, 9, 4, 3, 7, 5, 6, 8), 3, 6)
m2 <- IntervalMatrix(data2)
dim(m2)
[Package IntervalQuestionStat version 0.2.0 Index]