getTidyForm {IBCF.MTME}R Documentation

Matrix format to Tidy data format

Description

Matrix format to Tidy data format

Usage

getTidyForm(Matrix_DataSet, onlyTrait = FALSE)

Arguments

Matrix_DataSet

A data.frame object with the response values divided in n environments or traits columns

onlyTrait

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

Value

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

Examples

## Not run: 
  data('Wheat_IBCF')
  M <- getMatrixForm(Wheat_IBCF)
  Tidy <- getTidyForm(M)

## End(Not run)

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

## End(Not run)


[Package IBCF.MTME version 1.6-0 Index]