unPackDataPackSheet: Unpack a Data Pack sheet.

View source: R/unPackSheet.R

unPackDataPackSheetR Documentation

Unpack a Data Pack sheet.

Description

Within a submitted Data Pack (directed to by d$keychain$submission_path), extract data from a single sheet specified in d$data$sheet.

Usage

unPackDataPackSheet(
  d,
  sheets,
  clean_orgs = TRUE,
  clean_disaggs = TRUE,
  clean_values = TRUE
)

Arguments

d

Datapackr sidecar object

sheets

Character vector. Names of sheets/tabs within tool.

clean_orgs

Logical. If TRUE, drops rows with missing or invalid org units.

clean_disaggs

Logical. If TRUE, drops rows with missing or incorrect Age, Sex, or KeyPop.

clean_values

Logical. If TRUE, will convert values to numeric type, drop non-numerics, NAs, & negatives; and aggregate all data across duplicate rows.

Value

d


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