Description Usage Arguments Author(s) Examples
Tipically, users type values that are not mapped in the agronomy ontology. For this reason, the API response retrieve additional information that should ensemble in a data structure.
1 | .replace_other_attribute_sitedesc(.data, attribute, other_attribute)
|
.data |
data to clean up |
attribute |
attribute of the database. Attribute name from AgroFIMS database where a user input is stored |
other_attribute |
Other attribute name related to |
Omar Benites
1 2 3 4 5 6 7 | ## Not run:
.data <- ag_get_personnel_studyId(studyDbId = 28,format = "data.frame",
serverURL = "https://research.cip.cgiar.org/agrofims/api/dev",
version ="/0212/r")
.data <- .replace_other_attribute_personnel(.data, "fundAgencyTypeId", "fundAgencyTypeOther")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.