Skip to contents

Retrieves the observations data (e.g., measurements, variables) for the active study, which must be set using the set_study function.

Usage

get_study_data()

Value

A data frame containing the observation data for the active study, or NULL

if no data is available.

See also

login_bms, set_crop, set_program, set_trial, set_study for related study operations.

Author

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

Examples

if (interactive()) {
  set_qbms_config("https://bms.icarda.org/ibpworkbench")
  login_bms()
  set_crop("wheat")
  set_program("Wheat International Nurseries")
  set_trial("IDYT39")
  set_study("IDYT39 Environment Number 9")
  data <- get_study_data()
  head(data)
}