Description Usage Arguments Value Author(s) Examples

`interval`

constructs an object of class `interval`

representing an interval.

`liesWithin`

checks if a number lies within a given interval.

1 2 3 | ```
interval(lower, upper, left=c(">=", ">"), right=c("<=", "<"))
liesWithin(x, int)
``` |

`lower` |
the lower boundary of the interval. Can be set to |

`upper` |
the upper boundary of the interval. Can be set to |

`left, right` |
a comparison symbol. Must be one of (“>=”,
“>”) for |

`x` |
a numeric vector or array giving the numbers to be checked. |

`int` |
an interval object. |

`interval`

returns an object of class `interval`

containing
the following components:

`lower` |
the lower boundary of the interval |

`upper` |
the upper boundary of the interval |

`left` |
the left comparison operator |

`right` |
the right comparison operator |

`liesWithin`

returns `TRUE`

if the given number lies
within the interval and `FALSE`

otherwise.

Thorn Thaler

1 2 3 | ```
i <- interval(-3, 3, left=">")
liesWithin(-3:5, i)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.