env_connect: Evaluate connectivity between environments

View source: R/env_connect.R

env_connectR Documentation

Evaluate connectivity between environments

Description

Evaluate connectivity between environments

Usage

env_connect(pheno, env, geno, proportion = FALSE, 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.

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.

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 Jan. 6, 2023, 7:12 a.m.