prepareData: prepareData Prepares data for comparison in 3 stages. 1....

Description Usage Arguments Value Examples

View source: R/pd_prepareData.R

Description

prepareData Prepares data for comparison in 3 stages. 1. Match columns - filter dataframes to those columns that match and summarise differences 2. Match rows - filter dataframes to those rows that match and summarise differences 3. Coerce data

Usage

1
prepareData(dfA, dfB, keys = NA, trimChars = TRUE)

Arguments

dfA

data frame. The first data object. dataCompareR will attempt to coerce all data objects to data frames.

dfB

data frame. The second data object. dataCompareR will attempt to coerce all data objects to data frames.

keys

String. Name of identifier column(s) used to compare dfA and dfB. NA if no identifier (row order will be used instead), a character for a single column name, or a vector of column names to match of multiple columns

trimChars

Boolean. If true, strings and factors have whitespace trimmed before comparison.

Value

dataCompareRObject containing details of the comparison

Examples

1
2
3
4
## Not run: dfA <- iris
## Not run: dfB <- iris
## Not run: keys <- NA
## Not run: prepareData(dfA,dfB,keys, trimChars = TRUE)

dataCompareR documentation built on Nov. 23, 2021, 9:06 a.m.