pair.combn | R Documentation |
This function returns a matrix containing all paired comparisons defined by a design.
pair.combn(blocks, unique = TRUE)
blocks |
A matrix defining the blocks of the model. The number of rows must be the number of blocks, each row represents a block and contains the item numbers. The number of columns present the number of items per block. |
unique |
Logical. Should only unique paired comparisons be returned? |
Returns a matrix with all paired comparisons defined by a design.
#' # Define 30 items divided by three triplets as blocks
blocks <- matrix(c(1:30), ncol = 3)
# Get all blocks
pair.combn(blocks)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.