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).
Usage
getDyad(x, dyadID, active = FALSE)
# S3 method for class 'remify'
getDyad(x, dyadID, active = FALSE)
Methods (by class)
getDyad(remify)
: return dyad composition in actor1, actor2 and type from one (or more) dyad ID
Examples
# 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))
#> dyadID actor1 actor2 type
#> 1 450 Charles Maya conflict
#> 2 239 Lexy Kelsey competition
#> 3 900 Francesca Derek cooperation