extract-methods | R Documentation |
These methods allow standard subsetting ('[') and assignment ('[<-') for 'DirectedNet' and 'UndirectedNet' objects.
## S4 method for signature 'DirectedNet,ANY,ANY,ANY'
x[i, j, ..., maskMissing = TRUE, drop = TRUE]
## S4 method for signature 'UndirectedNet,ANY,ANY,ANY'
x[i, j, ..., maskMissing = TRUE, drop = TRUE]
## S4 replacement method for signature 'DirectedNet'
x[i, j, ...] <- value
## S4 replacement method for signature 'UndirectedNet'
x[i, j, ...] <- value
x |
A 'DirectedNet' or 'UndirectedNet' object. |
i , j |
Index vectors. |
... |
Currently unused. |
maskMissing |
Logical. Should missing values be masked by NA? |
drop |
Ignored (present for compatibility). |
value |
Values to assign (for '[<-' only). |
A modified object or extracted submatrix depending on the method.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.