Learn R Programming

RSEIS (version 3.7-4)

next2: Next Power of Two

Description

Return next power of two greater than n

Usage

next2(x)

Arguments

x

length of vector

Value

integer value

Examples

Run this code
# NOT RUN {
k <- 1236
next2(k)

# }

Run the code above in your browser using DataLab