Learn R Programming

inspectr

A package for performing fidelity checks on messy dataframes.

Inspectr consists of functions adapted from a quality control script I developed for performing data checks on large datasets from an educational assessment, then generalized for more generic application.

The inspectr package contains two classes of functions: column checks and basic fidelity checks. Column check functions allow the user to check data for fidelity without having to master apply functions, and basic fidelity check functions can be used to facilitate some common checks. The user can also define their own checks to use with the column check functions, making the package generalizable to unique data requirements.

Getting started

The data-checks vignette included with this package provides an overview of how to use the column check functions and illustrates the included basic fidelity check functions: vignette("introduction", package = "dplyr")

Copy Link

Version

Install

install.packages('inspectr')

Monthly Downloads

2

Version

1.0.0

License

CC BY-SA 4.0

Maintainer

Jennifer Brussow

Last Published

January 30th, 2017

Functions in inspectr (1.0.0)

inspectr

inspectr: A package for performing fidelity checks on messy dataframes.
val_check

Check whether all values in the column fall within a set of user-defined values.
two_col_check

Check a column for data fidelity using criteria related to a second column.
three_col_check

Check a column for data fidelity using criteria related to two additional columns.
numeric_check

Check whether all values are numeric.
greater_than

Check whether values in column one are greater than their corresponding values in the second column.
character_blanks_check

Check whether all values are either character strings. Blanks ("") and NA values are not permitted.
date_check

Check whether all values fall within a date range. NA values are also accepted.
less_than_equalto

Check whether values in column one are less than or equal to their corresponding values in the second column.
less_than

Check whether values in column one are less than their corresponding values in the second column.
character_check

Check whether all values are character strings or blanks (""). NA values are not permitted.
col_check

Check a single column for data fidelity.
greater_than_equalto

Check whether values in column one are greater than or equal to their corresponding values in the second column.