clean_other_expdetails: Clean other values in experiment details

Description Usage Arguments Author(s) Examples

View source: R/expdetails_metadata.R

Description

Tipically values users fill forms or combos with standarized inputs in AgroFIMS. However, sometimes ontologized inputs are not enough. For this reason, they select the Other value in order to fill options that have not been maped in the Agronomic Ontology in AgroFIMS

Usage

1
clean_other_expdetails(.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_expdetails_studyId(studyDbId = 21,format = "data.frame",
                                   serverURL = "https://research.cip.cgiar.org/agrofims/api/dev",
                                   version ="/0212/r")
.data. <- clean_other_expdetails(.data, "experimentType", "experimentTypeOther")

## End(Not run)

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