getActorID | R Documentation |
A function that given a vector of actor names returns the corresponding vector of ID's.
getActorID(x, actorName = NULL)
## S3 method for class 'remify'
getActorID(x, actorName = NULL)
x |
a |
actorName |
a vector of actor names. The same names in the input edgelist. |
actor ID as integer value.
getActorID(remify)
: return actor's ID from actor's name
# processing the random network 'randomREH'
library(remify)
data(randomREH)
reh <- remify(edgelist = randomREH$edgelist,
model = "tie",
riskset = "manual",
omit_dyad = randomREH$omit_dyad)
# find actor ID from the actor name
getActorID(x = reh, actorName = c("Francesca","Kayla"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.