is_balanced_trial: Check if a data set is balanced

Description Usage Arguments Value Author(s) Examples

Description

Check if a data set coming from multi-environment trials is balanced, i.e., all genotypes are in all environments.

Usage

1
is_balanced_trial(.data, env, gen, resp)

Arguments

.data

The dataset containing the columns related to Environments, Genotypes, replication/block and response variable(s).

env

The name of the column that contains the levels of the environments.

gen

The name of the column that contains the levels of the genotypes.

resp

The response variable.

Value

A logical value

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
3
4
5
unb <- data_ge %>%
        remove_rows(1:3) %>%
        droplevels()
is_balanced_trial(data_ge, ENV, GEN, GY)
is_balanced_trial(unb, ENV, GEN, GY)

metan documentation built on Nov. 10, 2021, 9:11 a.m.