getTraitsData: Getting Trait Values of Accessions for a Specific Trait

Description Usage Arguments Details Value Author(s) Examples

View source: R/getData.R

Description

Return a data frame with observed values of accessions for associated Trait

Usage

1
getTraitsData(IG, traitID)

Arguments

IG

factor. Unique identifier of accession.

traitID

integer. Unique identifier of trait (from getTraits).

Details

Possible inputs for traitID can be found using the getTraits function (see section 'Examples').

Value

A data frame with scores for the trait specified in traitID for the accessions given in IG.

Author(s)

Khadija Aouzal, Amal Ibnelhobyb, Zakaria Kehel, Fawzy Nawar

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
if(interactive()){
 # Check trait ID for septoria and get septoria data for durum wheat
 durum <- getAccessions(crop = 'Durum wheat', coor = TRUE)
 durumTraits <- getTraits(crop = 'Durum wheat')
 septoria <- getTraitsData(IG = durum$IG, traitID = 145)
 }

## End(Not run)

khadijaaziz/icardaFIGSr documentation built on Dec. 21, 2021, 6:38 a.m.