Description Usage Arguments Value Author(s) See Also Examples
View source: R/ABCXYZanalysis.R
Divides a given data frame into 3 classes, A, B, C, according to the value of one column (e.g., revenue).
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
Data frame or matrix on which the ABC analysis is performed. |
value |
Name of the column variable that contains the value for the ABCXYZ analysis. |
item |
Names of the columns including the item names or identifiers (e.g., product name, EAN). |
timestamp |
Name of the column including the timestamp. This column should be in POSIX or date-format. |
temporalAggregation |
Temporal aggregation for the XYZ-analysis (i.e., "day", "week", "month", "quarter", "year"). |
AB |
Threshold (in percent) between category A and B. |
BC |
Threshold (in percent) between category B and C. |
XY |
Threshold (in percent) between category X and Y. |
YZ |
Threshold (in percent) between category Y and Z. |
ignoreZeros |
Whether zero values should be ignored in XYZ-analysis. |
Returns an ABCXYZData
object. Only positive values are displayed
Leon Binder leon.binder@th-deg.de
Bernhard Bauer bernhard.bauer@th-deg.de
Michael Scholz michael.scholz@th-deg.de
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # ABC Analysis
data("Amount")
abcResult = computeABCXYZAnalysis(data = Amount,
value = "value",
item = "item",
timestamp = "date")
# ABC/XYZ Analysis
data("Amount")
abcxyzResult = computeABCXYZAnalysis(data = Amount,
value = "value",
item = "item",
timestamp = "date",
temporalAggregation = "week",
XY = 0.3, YZ = 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.