get_germplasm_data {QBMS}R Documentation

Retrieve Observations Data for a Specified Germplasm.

Description

Retrieves all available observations data for a given germplasm in the current crop database, regardless of the nested structure of programs/trials.

Usage

get_germplasm_data(germplasm_name = "")

Arguments

germplasm_name

The name of the germplasm.

Value

A data frame containing the aggregated observations data for the germplasm from all trials.

Author(s)

Khaled Al-Shamaa, k.el-shamaa@cgiar.org

See Also

login_bms, set_crop, get_germplasm_attributes

Examples

if (interactive()) {
  # Configure server connection
  set_qbms_config("https://bms.icarda.org/ibpworkbench")
  
  # Log in using your account (interactive mode)
  # You can pass your username and password as parameters (batch mode)
  login_bms()
  
  # Select a crop
  set_crop("wheat")
  
  # Select a breeding program by name
  set_program("Wheat International Nurseries")
  
  # Retrieve observations data for a specified germplasm aggregated from all trials
  germplasm_observations <- get_germplasm_data("Jabal")
}

[Package QBMS version 1.0.0 Index]