extract-methods {ernm} | R Documentation |
Subsetting and assignment for Net objects
Description
These methods allow standard subsetting ('[') and assignment ('[<-') for 'DirectedNet' and 'UndirectedNet' objects.
Usage
## S4 method for signature 'Rcpp_DirectedNet'
x[i, j, ..., maskMissing = TRUE, drop = TRUE]
## S4 method for signature 'Rcpp_UndirectedNet'
x[i, j, ..., maskMissing = TRUE, drop = TRUE]
## S4 replacement method for signature 'Rcpp_DirectedNet'
x[i, j, ...] <- value
## S4 replacement method for signature 'Rcpp_UndirectedNet'
x[i, j, ...] <- value
Arguments
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). |
Value
A modified object or extracted submatrix depending on the method.
[Package ernm version 1.0.1 Index]