Learn R Programming

RDS (version 0.9-9)

control.list.accessor: Named element accessor for ergm control lists

Description

Utility method that overrides the standard `$' list accessor to disable partial matching for ergm control.list objects

Usage

# S3 method for control.list
$(object, name)

Value

Returns the named list element exactly matching name, or NULL if no matching elements found

Arguments

object

list-coearceable object with elements to be searched

name

literal character name of list element to search for and return

Author

Pavel N. Krivitsky

Details

Executes getElement instead of $ so that element names must match exactly to be returned and partially matching names will not return the wrong object.

See Also