getDyad | R Documentation |
A function that given a vector of one or more dyad ID's returns the corresponding dyad composition of "actor1", "actor2" and "type" (if event types are present). The ID's to supply must range between 1 and D (largest risk set size).
getDyad(x, dyadID, active = FALSE)
## S3 method for class 'remify'
getDyad(x, dyadID, active = FALSE)
x |
a |
dyadID |
a vector of one or more dyad ID's, each one ranging from 1 to D (largest risk set size). |
active |
logical, whether to consider the input |
a data.frame with "actor1", "actor2" and "type" names corresponding to the vector dyadID
.
getDyad(remify)
: return dyad composition in actor1, actor2 and type from one (or more) dyad ID
# processing the random network 'randomREH'
library(remify)
data(randomREH)
reh <- remify(edgelist = randomREH$edgelist,
model = "tie",
riskset = "manual",
omit_dyad = randomREH$omit_dyad)
# find dyad composition (names of actor1, actor2 and type) from the dyad ID
getDyad(x = reh, dyadID = c(450,239,900))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.