getActorName | R Documentation |
A function that given a vector of actor ID's returns the corresponding vector of actor (input) names.
getActorName(x, actorID = NULL)
## S3 method for class 'remify'
getActorName(x, actorID = NULL)
x |
a |
actorID |
a vector of actor ID's. The ID value can range between |
character vector of actors' names.
getActorName(remify)
: return actor's name from actor's 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 actor name from actor ID
getActorName(x = reh, actorID = c(1,2,8,12))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.