writePDAPExportCSV: Title

View source: R/utilsForPDAP.R

writePDAPExportCSVR Documentation

Title

Description

Given a DataPack object, this function will extract the necessary data and format it for the PDAP API. The data will be written to a CSV file and returned as raw binary data. The job type will determine the format of the data. Currently, only target_setting_tool and year_two_targets are supported.

Usage

writePDAPExportCSV(d, job_type)

Arguments

d

Datapackr sidecar object

job_type

The type of job to upload the data to. Currently only target_setting_tool or year_two_targets are supported. An invalid job type will throw an error.

Value

Returns the raw binary data of the CSV file


pepfar-datim/datapackr documentation built on Oct. 12, 2024, 3:33 p.m.