Learn R Programming

IBCF.MTME (version 1.6-0)

getTidyForm: 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

Run this code
# NOT RUN {
  data('Wheat_IBCF')
  M <- getMatrixForm(Wheat_IBCF)
  Tidy <- getTidyForm(M)
# }
# NOT RUN {
# }
# NOT RUN {
  data('Year_IBCF')
  M.Y <- getMatrixForm(Year_IBCF, onlyTrait = T)
  Tidy.Y <- getTidyForm(M.Y, onlyTrait = T)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab