convert_to_xlsx_projentity: Convert API-data.frame response to AgroFIMS Excel logic table

Description Usage Arguments Author(s) Examples

View source: R/projenty_metadata.R

Description

Transform an API table to Excel table format

set and modify databases attributes by AgroFIMS label in order to export the fieldbook file

Usage

1
convert_to_xlsx_projentity(.data, meta_dbattributes = NULL)

Arguments

.data

data.frame table with

meta_dbattributes

metadata attributes and labels in AgroFIMS

Author(s)

Omar Benites

Examples

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

## End(Not run)

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