content_spot_check: Spot checking content

Description Usage Arguments

View source: R/import_content_spot_check.R

Description

This is a generic function that performs several quick checks on a dataset to check for discrepancies versus the originating file. Function will return messages warning against mismatched length between the R dataframe and the original file, or if rows or columns are mismatched between the raw data file and the R dataframe

Usage

1
content_spot_check(df, filepath, delim = ",", rows = 15, skip = 0, verbose = T)

Arguments

df

dataframe user wants to test

filepath

path to file of raw data user wants to compare

delim

character used to break up cells in data file

rows

number of rows to use to test file, default is 15

skip

number of rows to skip at top of the file if needed

verbose

if true, returns more comprehensive output


associatedpress/apdatacheck documentation built on Feb. 17, 2020, 9:27 p.m.