Learn R Programming

QBMS (version 1.5.0)

get_trial_data: Get the Observations Data of the Current Active Trial

Description

Retrieves the combined observations data (including all studies) for the current active trial, as configured in the internal state object using the set_trial function. This function iterates over all studies within the active trial and aggregates their observation data.

Usage

get_trial_data()

Arguments

Value

A data frame containing the combined observations data from all studies in the active trial.

Author

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

See Also

login_bms, set_crop, set_program, set_trial

Examples

Run this code
if (interactive()) {
  set_qbms_config("https://bms.icarda.org/ibpworkbench")
  login_bms()
  set_crop("wheat")
  set_program("Wheat International Nurseries")
  set_trial("IDYT39")
  MET <- get_trial_data()
  head(MET)
}

Run the code above in your browser using DataLab