qualitycontrol

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

qualitycontrol

The goal of qualitycontrol is to set a data quality control framework

Installation

You can install the qualitycontrol from GitHub with:

# install.packages("devtools")
devtools::install_github("luisgarcez11/qualitycontrol")

Data

The als_data dataset will be used to guide you through the package functionality. This data is not real, but based on data retrieved from Amyotrophic Lateral Sclerosis patients.

library(qualitycontrol)
als_data

QC mapping

The als_data_qc_mapping is an R list which contains 3 tables specifying all the tests used for quality control.

Missing

als_data_qc_mapping$missing

Inconsistencies

als_data_qc_mapping$inconsistencies

Out of range values

als_data_qc_mapping$range

qc_data function

qc_data takes as arguments the data to be quality controlled and the QC mapping containing the tests to be applied.

qc_data(als_data, als_data_qc_mapping)

This will return a table with all the findings. If you want to save it, you can specify the path to be saved in output_file.



Try the qualitycontrol package in your browser

Any scripts or data that you put into this service are public.

qualitycontrol documentation built on Nov. 28, 2022, 5:17 p.m.