[ {lolog} | R Documentation |
indexing
Description
indexing
indexing
indexing
indexing
Usage
## S4 method for signature 'Rcpp_DirectedNet,ANY,ANY,ANY'
x[i, j, ..., maskMissing = TRUE, drop = TRUE]
## S4 method for signature 'Rcpp_UndirectedNet,ANY,ANY,ANY'
x[i, j, ..., maskMissing = TRUE, drop = TRUE]
## S4 replacement method for signature 'Rcpp_DirectedNet,ANY,ANY,ANY'
x[i, j, ...] <- value
## S4 replacement method for signature 'Rcpp_UndirectedNet,ANY,ANY,ANY'
x[i, j, ...] <- value
Arguments
x |
object |
i |
indices |
j |
indices |
... |
unused |
maskMissing |
should missing values be masked by NA |
drop |
unused |
value |
values to assign |
Examples
data(ukFaculty)
net <- as.BinaryNet(ukFaculty)
#dyad Extraction
net[1:2,1:5]
net$outNeighbors(c(1,2,3))
#dyad assignment
net[1,1:5] <- rep(NA,5)
net[1:2,1:5]
net[1:2,1:5,maskMissing=FALSE] #remove the mask over missing values and see
#nothing was really changed
#node variables
net$variableNames()
net[["Group"]]
net[["rnorm"]] <- rnorm(net$size())
net[["rnorm"]]
[Package lolog version 1.3.1 Index]