dot-replace_other_attribute_expdetails: Replace attributes that has others values in expdetails

Description Usage Arguments Author(s) Examples

Description

Replace attributes that has others values in expdetails

Usage

1
.replace_other_attribute_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. <- .replace_other_attribute_expdetails(.data, "experimentType" ,"experimentTypeOther")

## End(Not run)

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