https://github.com/cran/nacopula
Revision 57da57ce89c24a8e4c0dfaa6cc171e582fee6a86 authored by Martin Maechler on 02 July 2010, 00:00:00 UTC, committed by Gabor Csardi on 02 July 2010, 00:00:00 UTC
0 parent
Tip revision: 57da57ce89c24a8e4c0dfaa6cc171e582fee6a86 authored by Martin Maechler on 02 July 2010, 00:00:00 UTC
version 0.4-2
version 0.4-2
Tip revision: 57da57c
interval.Rd
\name{interval}
\alias{interval}
\title{Construct Simple "interval" Object}
\description{
Easy construction of an object of class \code{\linkS4class{interval}},
using typical mathematical notation.
}
\usage{
interval(ch)
}
\arguments{
\item{ch}{a character string specifying the interval.}
}
\value{
an \code{\linkS4class{interval}} object.
}
\author{Martin Maechler}
\seealso{
the \code{\linkS4class{interval}} class documentation,
notably its reference to more sophisticated interval classes available
for \R.
}
\examples{
interval("[0, 1)")
## Two ways to specify open interval borders:
identical(interval("]-1,1["),
interval("(-1,1)"))
## infinite :
interval("[0, Inf)")
## arithmetic with scalars works:
4 + 2* interval("[0, 1.5)") # -> [4, 7)
## str() to look at internals:
str( interval("[1.2, 7]") )
}
\keyword{arith}
\keyword{utilities}
Computing file changes ...