dataFormat: dataFormat Function

Description Usage Arguments Value

View source: R/dataFormat.R

Description

This function is made to format data within bilinear(). Not intended for use by user.

Usage

1
dataFormat(x, G, E, y, block, alpha, anyNullGEy, override3col)

Arguments

x

matrix or data.frame containing numeric values of cell means with genotypes on rows and environments on columns (e.g. ith genotype within jth environment). Alternatively a data.frame can be provided in long format, with factor and value variable names passed to 'G', 'E' and 'y' respectively

G

character. Name of genotype variable in data.frame 'x' if 'x' is a data.frame in long format. Optionally, character or factor vector of genotype names (optional). If NULL (default) a matrix of cell means must be provided to 'x' argument

E

character. Name of environment variable in data.frame 'x' if 'x' is a data.frame in long format. Optionally, character or factor vector of environment names (optional). If NULL (default) a matrix of cell means must be provided to 'x' argument

y

character. Name of phenotype variable in data.frame 'x' if 'x' is a data.frame in long format. Optionally, numeric vector of phenotype values (optional). If NULL (default) a matrix of cell means must be provided to 'x' argument

block

character. Optional, for RCBD only. Name of block variable in data.frame 'x' if 'x' is a data.frame in long format and study is an RCBD. Optionally, character or factor vector of block names.

alpha

pvalue cutoff threshold for significance. Default is 0.05.

anyNullGEy

logical. Are any of 'G', 'E', 'y' arguments NULL?

override3col

logical. Overrides the 3 column numeric warning when a matrix of 3 coulmns is provided. Most users will not need to turn this off, unless the number of environments is 3 and a table of cell means are provided. Default is FALSE.

Value

formatted data frame for use inside bilinear()


nsantantonio/Bilinear documentation built on Aug. 18, 2020, 2:31 p.m.