prepareSheetData: Prepare sheet-specific dataset for writing into a Data Pack...

View source: R/prepareSheetData.R

prepareSheetDataR Documentation

Prepare sheet-specific dataset for writing into a Data Pack sheet.

Description

Prepares provided dataset for writing into specified Data Pack sheet.

Usage

prepareSheetData(
  sheet,
  org_units,
  schema = pick_schema(),
  sheet_data,
  cop_year = getCurrentCOPYear()
)

Arguments

sheet

Specified sheet within wb.

org_units

Dataset of org units to include.

schema

Defaults to standard Data Pack schema, but allows for provision of custom schema if needed.

sheet_data

Data to prepare.

cop_year

COP year for dating as well as selection of templates.

Value

dataframe of data prepared for Data Pack


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.