type.in_range | R Documentation |
This is anticipated to be part of a iface
rule e.g.
type.in_range(min, max, include.min = TRUE, include.max = TRUE)
min |
the lower limit |
max |
the upper limit |
include.min |
is lower limit open (default TRUE) |
include.max |
is upper limit open (default TRUE) |
iface(test_col = integer + in_range(-10,10) ~ "An integer from -10 to 10")
a function which checks the values and returns them if OK or throws an error if not
type.in_range(0,10,TRUE,TRUE)(0:10)
try(type.in_range(0,10,TRUE,FALSE)(0:10))
try(type.in_range(0,10,FALSE)(0:10))
type.in_range(0,10,FALSE,TRUE)(1:10)
type.in_range(0,10,TRUE,FALSE)(0:9)
type.in_range(0,Inf,FALSE,FALSE)(1:9)
try(type.in_range(0,10)(1:99))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.