env_connect: Evaluate connectivity between environments

Description Usage Arguments Details Value

View source: R/env_connect.R

Description

Evaluate connectivity between environments

Usage

1
env_connect(pheno, env, geno, output = "dataframe")

Arguments

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.

output

String containing either "dataframe" to return a three-column dataframe, or "matrix" to return a sparse matrix.

Details

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.

Value

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.


etnite/bwardr documentation built on April 14, 2021, 7:04 p.m.