Description Usage Arguments Details See Also
Coerces object to an R6 Interval.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | as.Interval(object)
## S3 method for class 'Set'
as.Interval(object)
## S3 method for class 'Interval'
as.Interval(object)
## S3 method for class 'list'
as.Interval(object)
## S3 method for class 'data.frame'
as.Interval(object)
## S3 method for class 'matrix'
as.Interval(object)
## S3 method for class 'numeric'
as.Interval(object)
## S3 method for class 'ConditionalSet'
as.Interval(object)
|
object |
object to coerce |
as.Interval.list/as.Interval.data.frame
- Assumes the list
/data.frame
has
named items/columns: lower, upper, type, class
.
as.Interval.numeric
- If the numeric
vector is a continuous interval with no breaks then
coerces to an Interval with: lower = min(object), upper = max(object), class = "integer"
.
Ordering is ignored.
as.Interval.matrix
- Tries coercion via as.Interval.numeric on the first column of the
matrix.
as.Interval.Set
- First tries coercion via as.Interval.numeric, if possible wraps result
in a Set.
as.Interval.FuzzySet
- Tries coercion via as.Interval.Set on the support of the FuzzySet.
Interval
Other coercions:
as.FuzzySet()
,
as.Set()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.