Check if a data set coming from multi-environment trials is balanced, i.e., all genotypes are in all environments.
Author
Tiago Olivoto tiagoolivoto@gmail.com
Examples
# \donttest{
unb <- data_ge %>%
remove_rows(1:3) %>%
droplevels()
is_balanced_trial(data_ge, ENV, GEN, GY)
#> [1] TRUE
is_balanced_trial(unb, ENV, GEN, GY)
#> [1] FALSE
# }