env_connect | R Documentation |
Evaluate connectivity between environments
env_connect(pheno, env, geno, proportion = FALSE, output = "dataframe")
pheno |
Dataframe containing one column for environment identifier, and one column for genotype identifier. |
env |
String containing the name of the column in pheno containing environment identifiers. |
geno |
String containing the name of the column in pheno containing genotype identifiers. |
proportion |
Logical indicating whether to return proportion of lines shared between each pair of environments (i.e. the intersection of lines / union of lines) or else just return the raw number of lines shared between environments |
output |
String containing either "dataframe" to return a three-column dataframe, or "matrix" to return a sparse matrix. |
This function takes as input a dataframe containing one column containing identifiers for environments, and one column containing identifiers for genotypes, and returns a structure that lists the number of genotypes evaluated within each environment, and the number of genotypes shared between each pair of environments. This information can either be returned as a dataframe with three columns, or else as a matrix.
Either a dataframe or else a sparse matrix containing the number of genotypes within each environment, and the number of genotypes shared between each pair of environments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.