parse_range.Rd
Parse range limits
parse_range(ranges = NULL)
ranges | a character vector of length 1. |
---|
# Inclusive interval parse_range("[0, 100]")#> $lims #> [1] 0 100 #> #> $lower_lim #> function (e1, e2) .Primitive(">=") #> #> $upper_lim #> function (e1, e2) .Primitive("<=") #># Non-inclusive interval parse_range("(0, 100)")#> $lims #> [1] 0 100 #> #> $lower_lim #> function (e1, e2) .Primitive(">") #> #> $upper_lim #> function (e1, e2) .Primitive("<") #># Open positive interval parse_range("[0, Inf)")#> $lims #> [1] 0 Inf #> #> $lower_lim #> function (e1, e2) .Primitive(">=") #> #> $upper_lim #> function (e1, e2) .Primitive("<") #>