dataCompareR (version 0.1.0)

summary.dataCompareRobject: Summarizing RCompare Output

Description

Summarizing RCompare Output

Usage

# S3 method for dataCompareRobject
summary(object, mismatchCount = 5, ...)

Arguments

object

an dataCompareR object, usually a result of a call to rCompare.

mismatchCount

Integer. How many mismatches to include in tables

...

Passes any additional arguments (not used in current version)

Value

The function summary.dataCompareR computes and returns a list of summary details from the dataCompareR output given in object containing

datanameA

name of the first dataframe in the compare call

datanameB

name of the second dataframe in the compare call

nrowA

the number of rows in datanameA

nrowB

the number of rows in datanameB

version

the version of rCompare used to generate the dataCompareR object object

runtime

the date and time the dataCompareR object object was created

rversion

the version of R used

datasetSummary

a data frame containing the meta data information on datanameA and datanameB

ncolCommon

the number of columns of the same name contained in both datanameA and datanameB

ncolInAOnly

the number of columns only in datanameA

ncolInBOnly

the number of columns only in datanameB

ncolID

the number of columns used to match rows in datanameA and datanameB

typeMismatch

a data frame detailing which columns in both datanameA and datanameB have different class types

typeMismatchN

the number of columns with different variable types

nrowCommon

the number of rows with matching ID columns in both datanameA and datanameB

nrowInAOnly

the number of rows with non matching ID columns in datanameA

nrowInBOnly

the number of rows with non matching ID columns in datanameB

nrowSomeUnequal

the number of matched rows where at least one value is unequal

nrowAllEqual

the number of matched rows where all values are equal

ncolsAllEqual

the number of matched columns where all values are equal

ncolsSomeUnequal

the number of matched columns where at least one value is unequal

colsWithUnequalValues

a data frame detailing the mismatches for each matched column

nrowNAmisMatch

the number of matched numeric rows that contain a NA

maxDifference

the maximum difference between numeric columns from all matched columns

See Also

Other dataCompareR.functions: generateMismatchData, print.dataCompareRobject, rCompare, saveReport

Examples

Run this code
# NOT RUN {
rc1 <- rCompare(iris,iris) 
summary(rc1)
# }

Run the code above in your browser using DataCamp Workspace