getMatrixForm: Tidy data format to Matrix format

Description Usage Arguments Value Examples

Description

Tidy data format to Matrix format

Usage

1
getMatrixForm(Tidy_DataSet, onlyTrait = FALSE)

Arguments

Tidy_DataSet

data.frame object that contains 4 columns: $Line: Line or genotype identifier, and the name of this column could change. $Env: Name of the evaluated environment (s). $Trait: Name of the evaluated trait (s). $Response: Variable response obtained for the row corresponding to line and environment.

onlyTrait

logical by default is FALSE, if is TRUE only the column $Trait is transformed.

Value

A data.frame object with the $Response divided by $Traits columns.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  data('Wheat_IBCF')
  M <- getMatrixForm(Wheat_IBCF)

## End(Not run)

## Not run: 
  data('Year_IBCF')
  M.Y <- getMatrixForm(Year_IBCF, onlyTrait = T)

## End(Not run)

IBCF.MTME documentation built on May 1, 2019, 7:58 p.m.