randomize trials for multiplication without replication
Source:R/randomize_row_col.R
randomize_noRep.Rd
randomize trials for multiplication without replication
Usage
randomize_noRep(
rowD = 23,
tot = 207,
ins = ins,
trial = "KE25MOL-HERL-ST01",
path = t_dir,
season = "Season 2025",
to_add = 4,
rep = 4,
check = c("Sagitta", "Unica", "Sherekea", "Shangi")
)
Arguments
- rowD
integer. rows in design
- tot
integer. total number of genotypes
- ins
dataframe. contains a column named
geno
- trial
character. name of trial
- path
character. path to write design
- season
character. season to randomize
- to_add
integer. number of checks to add
- rep
integer. number of replications for each of the checks
- check
character. vector of checks
Examples
data("ilri")
dat <- ilri %>% dplyr::select(geno)
d <- randomize_noRep(
rowD = 11,
tot = 55,
ins = dat,
path = NULL
)
head(d)
#> plot geno row col
#> 1 KE25MOL-HERL-ST01-00001 CIP319027.002 1 1
#> 2 KE25MOL-HERL-ST01-00002 CIP319027.001 2 1
#> 3 KE25MOL-HERL-ST01-00003 Unica 3 1
#> 4 KE25MOL-HERL-ST01-00004 CIP319052.006 4 1
#> 5 KE25MOL-HERL-ST01-00005 CIP319020.006 5 1
#> 6 KE25MOL-HERL-ST01-00006 Sagitta 6 1