ddcpv_check: DDC Pre-Validation Check

View source: R/ddc_prevalidation.R

ddcpv_checkR Documentation

DDC Pre-Validation Check

Description

This code should be run on HFR submission prior to loading into DDC/s3. Currently, DDC cannot handle two issues - (1) tabs with only one row of data and (2) tabs not ordered from least to greatest This code resolves the first by creating a second row of data with the first value and the second by reordering tabs using openxlsx.

Usage

ddcpv_check(filepath)

Arguments

filepath

path to HFR submission

Value

print out of checks and

Examples

## Not run: 
files <- list.files("ou_submissions/", "xlsx", full.names = TRUE)
ddcpv_check(files[1])
purrr::walk(files, ddcpv_check) 
## End(Not run)

USAID-OHA-SI/Wavelength documentation built on March 24, 2023, 10:07 a.m.