the labels ("Strain", "No Phage", "Phage Added") )could be also added as arguments to this function;
the function is named to conform to other names in the package: other names could also be used;
the pattern is 1:cells for both partitions: a different pattern may be needed if the partition column is NOT in the middle; it is possible to compute and use the 2 totals (cells1 & cells2);
Demo Function: demo_design
The block of code used to create a demo design is repeated several times inside the various vignettes:
a demo-function should be used afterwards to generate the designs;
demo_design = function(nrows = 8, ncols = 12, part.col=6) { col1 = part.col; col2 = part.col + 1; cells = nrows * col1; make_design( pattern_split = ",", nrows = nrows, ncols = ncols, "Bacteria_strain" = make_designpattern( values = paste("Strain", 1:cells), rows = 1:nrows, cols = 1:col1, pattern = 1:cells, byrow = TRUE), "Bacteria_strain" = make_designpattern( values = paste("Strain", 1:cells), rows = 1:nrows, cols = col2:ncols, pattern = 1:cells, byrow = TRUE), "Phage" = make_designpattern( values = c("No Phage"), rows = 1:nrows, cols = 1:col1, pattern = "1"), "Phage" = make_designpattern( values = c("Phage Added"), rows = 1:nrows, cols = col2:ncols, pattern = "1")) }
Note: