View source: R/ensureRangeOpen.R
ensureRangeOpen | R Documentation |
Ensure that value belongs to the open interval ]a,b[
ensureRangeOpen(x, a, b)
x |
value |
a |
lower limit |
b |
upper limit |
corrected value
# return 1: ensureRangeOpen(x = 10, a = 0, b = 1) # return 0: ensureRangeOpen(x = 0, a = 0, b = 1) # return 0.5: ensureRangeOpen(x = 0.5, a = 0, b = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.