Learn R Programming

RSEIS (version 4.2-4)

next2: Next Power of Two

Description

Return next power of two greater than n

Usage

next2(x)

Value

integer value

Arguments

x

length of vector

Author

Jonathan M. Lees<jonathan.lees.edu>

Examples

Run this code
k <- 1236
next2(k)

Run the code above in your browser using DataLab