validateUpload: Validate a data frame for upload to TGR

Description Usage Arguments Details Value Author(s)

View source: R/prepForUpload.R

Description

Validate a data frame for upload to TGR

Usage

1
validateUpload(dataToValidate)

Arguments

dataToValidate

A data frame containing the data you want to validate for upload. Note: For a valid dataset to be uploaded to the TGR REDCap, it must have the 'molecular_id' column first.

Details

Requires REDCap credentials to be set in the environment. Does not allow for changes in DAG or marking if an instrument is complete.

Value

A list of results including: ‘assessment' which is the results from REDCapR’s 'validate_for_write' function; 'invalid' which is a data frame including 'molecular_id' that includes columns that are not included in the TGR data dictionary and cannot be uploaded; and 'valid' which is a data frame suitable for uploading via the Data Import Tool in REDCap after writing it to a csv.

Author(s)

Amy Paguirigan


FredHutch/tgR documentation built on Oct. 5, 2021, 8:39 a.m.