block_design creates a data frame that identifies which items
corresponds to which booklets.
Details
If using booklet_design in tandem with block_design,
item_block_assignment is the the first element of the returned list of
block_design.
The columns of item_block_assignment represent each block while the
rows represent the number of items in each block. Because the number of
items per block can vary, the number of rows represents the block with the
most items. The contents of item_block_assignment is the actual item
numbers. The remainder of shorter blocks are filled with zeros.
The columns of book_design represent each book while the rows
represent each block.
The default book_design assigns two blocks to every booklet in a
spiral design. The number of default booklets is equal to the number of
blocks and must be >= 3. If ncol(item_block_assignment) < 3,
book_design must be specified.
Examples
i_blk_mat <- matrix(seq(1:40), ncol = 5)
blk_book <- matrix(
c(
1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1,
0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0
),
ncol = 5, byrow = TRUE
)
booklet_design(item_block_assignment = i_blk_mat, book_design = blk_book)
#> B1 B2 B3 B4 B5 B6
#> i1 1 9 17 25 9 1
#> i2 2 10 18 26 10 2
#> i3 3 11 19 27 11 3
#> i4 4 12 20 28 12 4
#> i5 5 13 21 29 13 5
#> i6 6 14 22 30 14 6
#> i7 7 15 23 31 15 7
#> i8 8 16 24 32 16 8
#> i9 17 25 33 33 17 25
#> i10 18 26 34 34 18 26
#> i11 19 27 35 35 19 27
#> i12 20 28 36 36 20 28
#> i13 21 29 37 37 21 29
#> i14 22 30 38 38 22 30
#> i15 23 31 39 39 23 31
#> i16 24 32 40 40 24 32
booklet_design(item_block_assignment = i_blk_mat)
#> B1 B2 B3 B4 B5
#> i1 1 9 17 25 1
#> i2 2 10 18 26 2
#> i3 3 11 19 27 3
#> i4 4 12 20 28 4
#> i5 5 13 21 29 5
#> i6 6 14 22 30 6
#> i7 7 15 23 31 7
#> i8 8 16 24 32 8
#> i9 9 17 25 33 33
#> i10 10 18 26 34 34
#> i11 11 19 27 35 35
#> i12 12 20 28 36 36
#> i13 13 21 29 37 37
#> i14 14 22 30 38 38
#> i15 15 23 31 39 39
#> i16 16 24 32 40 40