Learn R Programming

IntervalQuestionStat (version 0.2.0)

show: Print basic information of interval-valued data

Description

This function allows to print in the console basic information of interval-valued data.

Usage

# S4 method for IntervalData
show(object)

# S4 method for IntervalList show(object)

# S4 method for IntervalMatrix show(object)

Value

This function does not return any value. It only prints the interval-valued object's information.

Arguments

object

A single interval, a list of intervals or a matrix with several intervals stored as an IntervalData, IntervalList, or IntervalMatrix object.

Author

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

Details

For IntervalData and IntervalList objects, both inf/sup and mid/spr characterizations of the intervals are printed, and for IntervalMatrix instances, the number of rows and columns is shown.

Examples

Run this code
## Show an interval-valued data
i <- IntervalData(0, 1)
show(i)

## Show an interval-valued data list
list <- IntervalList(c(0, 3, 2, 5, 6), c(4, 5, 4, 8, 7))
show(list)

## Show an interval-valued data matrix
m <- IntervalMatrix(matrix(c(0, 1, 2, 3, 0, 3, 4, 9), 2, 4))
show(m)

Run the code above in your browser using DataLab