MUS.combine: Combine MUS objects (joining strata into a full set).

Description Usage Arguments Value Author(s) Examples

Description

Combine a list of MUS objects into a single object. Typical use case is to group multiple strata into a single object. Works with MUS.planning.result, MUS.extraction.result and MUS.evaluation.result objects.

Usage

1
  MUS.combine(object.list)

Arguments

object.list

A list of MUS.planning.result, MUS.extraction.result and MUS.evaluation.result objects.

Value

An object of the same type of the first item in the list is returned containing an aggregation of the objects in the list.

Author(s)

Andre Guimaraes <alsguimaraes@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Simple Example
# Assume 500 invoices, each between 1 and 1000 monetary units
stratum.1 <- data.frame(book.value=round(runif(n=500, min=1, max=1000)))
plan.1 <- MUS.planning(data=stratum.1, tolerable.error=100000, expected.error=20000)

stratum.2 <- data.frame(book.value=round(runif(n=500, min=1, max=1000)))
plan.2 <- MUS.planning(data=stratum.2, tolerable.error=100000, expected.error=20000)

plan.combined <- MUS.combine(list(plan.1, plan.2))

print(plan.combined)

MUS documentation built on May 2, 2019, 12:36 p.m.