Description Usage Arguments Value Examples
View source: R/pd_prepareData.R
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
1 | prepareData(dfA, dfB, keys = NA, trimChars = TRUE)
|
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. |
dataCompareRObject
containing details of the comparison
1 2 3 4 | ## Not run: dfA <- iris
## Not run: dfB <- iris
## Not run: keys <- NA
## Not run: prepareData(dfA,dfB,keys, trimChars = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.