create_range_exp: Create a exponential range of integers

Description Usage Arguments Examples

View source: R/range.R

Description

Create a range from the powers of mult on the closed interval [lo, hi]. The endpoints are included, even if they are not multiples of mult. The range may go from negative to positive values if requested. This function works on integer sequences, so if an interval is requested outside of the maximum representable range of integers [-(2^{31} - 1), 2^{31} - 1] it will throw an error.

Usage

1
create_range_exp(lo, hi, mult = 8, exclude_zero = FALSE)

Arguments

lo

bottom of the interval

hi

top of the interval

mult

multiplier

exclude_zero

include 0 in the interval or not

Examples

1
create_range_exp(lo = 8, hi = bitwShiftL(a = 8, n = 10), mult = 2)

slwu89/ranges documentation built on Dec. 23, 2021, 3:25 a.m.