Learn R Programming

assertive (version 0.3-0)

make_range_string: Make a range string

Description

Makes a range string using mathematical notation.

Usage

make_range_string(lower, upper, lower_is_strict, upper_is_strict)

Arguments

lower
A number for the lower bound.
upper
A number for the upper bound.
lower_is_strict
Should the lower bound be included?
upper_is_strict
Should the upper bound be included?

Value

  • A string denoting the range.

Examples

Run this code
make_range_string(-1.2345, 6.7890, TRUE, FALSE)

Run the code above in your browser using DataLab