pss_qc: Create QC List

View source: R/pss_qc.R

pss_qcR Documentation

Create QC List

Description

Create QC List

Usage

pss_qc(
  cases,
  logs,
  data_dictionary,
  qc_rules,
  form_mapping,
  write_files = FALSE
)

Arguments

cases

A data frame with output from redcap_read function for PSS.

logs

A data frame with all logging events from REDCap.

data_dictionary

A data frame with the current data dictionary to look for missingness.

qc_rules

A data frame with the project specific qc_rules.

form_mapping

A data frame that has all the form mapping done.

write_files

Logical. Determines if csv files and Rmd files are created or not.

Value

A cleaned data frame of current QC Issues.

Examples

cases <- redcap_read(redcap_uri = url, "token"=token, events = redcap_events)$data
qc <- pss_qc(cases)

prebman1/pssTools documentation built on May 16, 2022, 7:55 a.m.