add_powers: Append the powers of 'mult' in the closed interval ['lo',...

Description Usage Arguments Value Note Examples

View source: R/range.R

Description

Generate a sequence consisting of the powers of mult on the closed interval [lo, hi]. 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. This function will only produce sequences of positive integers.

Usage

1
add_powers(lo, hi, mult = 8)

Arguments

lo

bottom of the interval

hi

top of the interval

mult

multiplier

Value

an integer vector

Note

This is not intended to be called directly by users, but it is exported in case it is useful to be imported into another package.

Examples

1
add_powers(lo = 8, hi = bitwShiftL(a = 8, n = 10))

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