Learn R Programming

statnet.common (version 4.10.0)

diff.control.list: Identify and the differences between two control lists.

Description

Identify and the differences between two control lists.

Usage

# S3 method for control.list
diff(x, y = eval(call(class(x)[[1L]])), ignore.environment = TRUE, ...)

# S3 method for diff.control.list print(x, ..., indent = "")

Value

An object of class diff.control.list: a named list with an element for each non-identical setting. The element is either itself a diff.control.list (if the setting is a control list) or a named list with elements x and y, containing x's and y's values of the parameter for that setting.

Arguments

x

a control.list

y

a reference control.list; defaults to the default settings for x.

ignore.environment

whether environment for environment-bearing parameters (such as formulas and functions) should be considered when comparing.

...

Additional arguments to methods.

indent

an argument for recursive calls, to facilitate indentation of nested lists.

Methods (by generic)

  • print(diff.control.list): A print method.