powered by
Check if a data set coming from multi-environment trials is balanced, i.e., all genotypes are in all environments.
is_balanced_trial(.data, env, gen, resp)
A logical value
The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s).
The name of the column that contains the levels of the environments.
The name of the column that contains the levels of the genotypes.
The response variable.
Tiago Olivoto tiagoolivoto@gmail.com
# \donttest{ unb <- data_ge %>% remove_rows(1:3) %>% droplevels() is_balanced_trial(data_ge, ENV, GEN, GY) is_balanced_trial(unb, ENV, GEN, GY) # }
Run the code above in your browser using DataLab