is.inrange | R Documentation |

Check whether argument `x` is within `range`.

is.inrange( x, range=c(0,1) )

`x` |
numerical value(s) to be evaluated. |

`range` |
list of two numbers defining the range used in the evaluation of |

The return value indicates whether `x` is an element of `[range[1], range[2]]`.

Note that the range used in the evaluation includes both endpoints of the specified range.

Logical.

`range`

.

is.inrange(1/2) is.inrange(pi, range=c(0,pi))

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.