Learn R Programming

IntervalQuestionStat (version 0.2.0)

rbind: Combine IntervalList and IntervalMatrix objects by rows

Description

This function allows to combine a sequence of lists and matrices of intervals, that is, IntervalList and IntervalMatrix objects, by rows, and store the result as an IntervalMatrix instance.

Usage

# S4 method for IntervalListOrIntervalMatrix
rbind(..., deparse.level = 1)

Value

This function returns a matrix of interval-valued data stored as an IntervalMatrix object.

Arguments

...

A sequence of lists or matrices of nonempty compact real intervals stored as IntervalList or IntervalMatrix objects, respectively.

deparse.level

Currently not used (put here to match the signature of the base implementation).

Author

José García-García garciagarjose@uniovi.es

Examples

Run this code
## Some rbind() examples
list1 <- IntervalList(c(0, 3), c(4, 5))
list2 <- IntervalList(c(3, 0), c(7, 4))
rbind(list1, list2)

matrix1 <- IntervalMatrix(matrix(c(0, 1, 2, 3, 0, 3, 4, 9), 2, 4))
matrix2 <- IntervalMatrix(matrix(c(1, 5, 2, 6, 0, 1, 2, 3), 2, 4))
rbind(matrix1, matrix2)

rbind(list1, matrix1)

Run the code above in your browser using DataLab