qc: Quality check

Description Usage Arguments Details Value

View source: R/qc.R

Description

Perform a QC on an object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
qc(target, reference, ...)

## Default S3 method:
qc(target, reference, ...)

## S3 method for class 'logical'
qc(target, reference, ...)

## S3 method for class 'character'
qc(target, reference, string_dist = FALSE, ignore_case = FALSE, ...)

Arguments

target

Target

reference

Reference

...

Additional arguments passed to methods

string_dist

If TRUE, string distances calculated with [stringr::stringdist]

ignore_case

Should cases be ignored?

Details

If both objects are named, they will be ‘reindex()'’d to be of equal length and sorted with matching names. 'qc.factor' will default to character if not ordered

Value

A data.frame with each target and reference value and their difference. Values in the 'target' and 'reference' column will always be returned as character.

differences

A logical vector ('TRUE' or 'FALSE' if items were different)


jmbarbone/dirtyr documentation built on Sept. 23, 2020, 4:05 a.m.