is.blocks {SIN} | R Documentation |
This function checks whether a list of vectors defines a valid decomposition of the set of variables into blocks.
is.blocks(blocks, p)
blocks |
a list of integer vectors representing a family of subsets of the variable set. |
p |
the number of variables. |
The function returns TRUE
if the block structure is such that
each variable is represented in exactly one of the blocks. Otherwise,
FALSE
is returned.
p <- 6 blocks <- list(1:3,6,5:4) is.blocks(blocks, p) blocks <- list(1:3,7,5:4) is.blocks(blocks, p) blocks <- list(1:2,6,5:4) is.blocks(blocks, p)