regen: Regenerate COIN object

Description Usage Arguments Details Value See Also Examples

View source: R/coin_regen.R

Description

Function to regenerate the results of the COIN, using the methodological parameters stored in .$Method. This function calls the construction functions of COINr in the order that they are found in .$Method, along with any custom code found in .$Method$Custom.

Usage

1
regen(COINold, quietly = FALSE)

Arguments

COINold

COIN object containing specifications on how to regenerate.

quietly

Logical: if TRUE suppresses all messages from COINr functions (warnings may still occur though).

Details

Note that while sets of weights will be passed to the regenerated COIN, anything in .$Analysis will be removed and will have to be recalculated.

For more details on regeneration of COINs, comparisons and adjustments, see the online documentation.

Value

An updated COIN object, with all data sets recalculated according to specifications in .$Method. Weight sets will be passed through.

See Also

Examples

1
2
3
4
5
6
7
ASEM <- build_ASEM()
# Make a copy
ASEMAltNorm <- ASEM
# Edit .$Method
ASEMAltNorm$Method$normalise$ntype <- "borda"
# Regenerate
ASEMAltNorm <- regen(ASEMAltNorm, quietly = TRUE)

COINr documentation built on Nov. 30, 2021, 9:06 a.m.