X <- BIB(3) # BIBD (15, 7, 3) from PG(3, 2)
Y <- Resolvable(1, X$BIB) # RBIBD (8, 14, 7, 4, 3)
Uniform(Y$RBIB)$UD # U(8, 2^7)
Z <- BIB(2, p = 3) # BIBD (13, 4, 1) from PG(2, 3)
W <- Resolvable(1, Z$BIB) # RBIBD (9, 12, 4, 3, 1)
Uniform(W$RBIB)$UD # U(9, 3^4)
# the result does not depend on the order of the blocks
set.seed(1)
P <- Y$RBIB[sample(nrow(Y$RBIB)), ]
dim(Uniform(P)$UD)
Run the code above in your browser using DataLab