R/NextPow2.R

NextPow2<-function (x) 
{
    a <- ceiling(log(x, 2))
    y <- 2^a
    y
}

Try the ClamR package in your browser

Any scripts or data that you put into this service are public.

ClamR documentation built on Aug. 21, 2023, 9:09 a.m.