ge_winners | R Documentation |
Computes the ranking for genotypes within environments and return the winners.
ge_winners(.data, env, gen, resp, type = "winners", better = NULL)
.data |
The dataset containing the columns related to Environments, Genotypes, and the 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(s). To analyze multiple variables in a
single procedure a vector of variables may be used. For example |
type |
The type of results. Defaults to |
better |
A vector of the same length of the number of variables to rank
the genotypes according to the response variable. Each element of the
vector must be one of the |
A tibble with two-way table with the winner genotype in each
environment (default) or the genotype ranking for each environment (if
type = "ranks"
).
Tiago Olivoto tiagoolivoto@gmail.com
library(metan)
ge_winners(data_ge, ENV, GEN, resp = everything())
# Assuming that for 'GY' lower values are better.
ge_winners(data_ge, ENV, GEN,
resp = everything(),
better = c("l, h"))
# Show the genotype ranking for each environment
ge_winners(data_ge, ENV, GEN,
resp = everything(),
type = "ranks")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.