Learn R Programming

SWIM (version 1.0.0)

merge.SWIM: Merging Two Stressed Models

Description

This function is a method for an object of class SWIM.

Usage

# S3 method for SWIM
merge(x, y, ...)

Arguments

x, y

Objects of class SWIM.

...

Additional arguments will be ignored.

Value

An object of class SWIM containing:

  • x, a data.frame containing the data;

  • new_weights, a list, each component corresponds to a different stress and is either a vector of scenario weights or a function, that applied to a column of x, generates the vectors of scenario weights;

  • type, a list, each component corresponds to a different stress and specifies the type of the stress;

  • specs, a list, each component corresponds to a different stress and contains a list with the specifications of what has been stressed.

See SWIM for details.

Details

Merges two objects of class SWIM, that are based on the same data.