$.control.list {statnet.common} | R Documentation |
Utility method that overrides the standard ‘$’ list accessor to disable partial matching for ergm control.list
objects
## S3 method for class 'control.list' object$name
object |
list-coearceable object with elements to be searched |
name |
literal character name of list element to search for and return |
Executes getElement
instead of $
so that element names must match exactly to be returned and partially matching names will not return the wrong object.
Returns the named list element exactly matching name
, or NULL
if no matching elements found
pavel
see getElement
## The function is currently defined as function (object, name) { if (isS4(object)) slot(object, name) else object[[name, exact = TRUE]] }