Merge branch 'quick-fix' into develop

This commit is contained in:
Waldir Leoncio 2022-12-23 14:15:01 +01:00
commit 7c7b4c5322
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
Package: rBAPS
Title: Bayesian Analysis of Population Structure
Version: 0.0.0.9014
Version: 0.0.0.9015
Date: 2020-11-09
Authors@R:
c(

View file

@ -10,7 +10,7 @@ dec2bitv <- function(d, n) {
d <- d[]
f <- e <- NA
c(f, e) <- log2(max(d)) # How many digits do we need to represent the numbers?
c(f, e) <- matlab2r::log2(max(d)) # How many digits do we need to represent the numbers?
bits <- floor(d * 2 ^ (seq(1 - max(n, e), 0))) %% 2
return(bits)
}