dot-replace_other_attribute_projlead: Replace attributes that has others values in project entity

Description Usage Arguments Author(s) Examples

Description

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.

Usage

1
.replace_other_attribute_projlead(.data, attribute, other_attribute)

Arguments

.data

data to clean up Other values

attribute

attribute of the database. Attribute name from AgroFIMS database where a user input is stored

other_attribute

Other attribute name related to attribute parameter used to store Other values or non-standardized inputs.

Author(s)

Omar Benites

Examples

1
2
3
4
5
6
7
## Not run: 
.data <- ag_get_projlead_studyId(studyDbId = 28,format = "data.frame",
                                   serverURL = "https://research.cip.cgiar.org/agrofims/api/dev",
                                   version ="/0212/r")
.data <- .replace_other_attribute_projlead(.data, "fundAgencyTypeId", "fundAgencyTypeOther")

## End(Not run)

AGROFIMS/ragrofims documentation built on Jan. 23, 2021, 8:40 a.m.