R/bin.R

Defines functions bin

Documented in bin

bin <-
function(x){
num <- 0
i <- 0
while (x > 0){
i <- i + 1
num[i] <- x %% 2
x <- floor(x / 2)
}
return(num)
}

Try the frt package in your browser

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

frt documentation built on May 2, 2019, 6:34 a.m.