as.IntervalList {IntervalQuestionStat}R Documentation

Convert a single interval to a list of intervals

Description

This function allows to coerce a single interval saved as an IntervalData object to a degenerated list of intervals composed only of this interval and stored as an IntervalList instance.

Usage

## S4 method for signature 'IntervalData'
as.IntervalList(object)

Arguments

object

A single interval stored as an IntervalData object.

Value

This function returns the interval coerced to a list of intervals stored as an IntervalList object.

Author(s)

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

See Also

Other coercion function is as.IntervalData().

Examples

## Convert a single interval into a list of intervals with a single interval
## In particular, degenerate interval list {[0, 1]} = {[1 -+ 1]} is defined.
as.IntervalList(IntervalData(0, 1))

[Package IntervalQuestionStat version 0.2.0 Index]