Learn R Programming

matman (version 1.1.3)

summary,ABCXYZComparison-method: Prints the summary of the comparison of two ABC/XYZ analyses

Description

Summarizes the differences between two ABCXYZData objects.

Usage

# S4 method for ABCXYZComparison
summary(object, withMissing = FALSE)

Arguments

object

Object of class ABCXYZComparison.

withMissing

Logical indicating whether missing categories will be shown. Default is FALSE.

Value

A contingency table showing the differences.

See Also

compare ABCXYZComparison

Examples

Run this code
# NOT RUN {
data("Amount")
data1 = Amount[sample(1:nrow(Amount), 1000),]
data2 = Amount[sample(1:nrow(Amount), 1000),]
abcxyzData1 = computeABCXYZAnalysis(data1, value = "value", item = "item", timestamp = "date",
                                    temporalAggregation = "day", XY = 0.5, YZ = 1)
abcxyzData2 = computeABCXYZAnalysis(data2, value = "value", item = "item", timestamp = "date",
                                    temporalAggregation = "day", XY = 0.5, YZ = 1)
comparison = compare(abcxyzData1, abcxyzData2)
summary(comparison)
# }

Run the code above in your browser using DataLab