getActorID {remify}R Documentation

getActorID

Description

A function that given a vector of actor names returns the corresponding vector of ID's.

Usage

getActorID(x, actorName = NULL)

## S3 method for class 'remify'
getActorID(x, actorName = NULL)

Arguments

x

a remify object.

actorName

a vector of actor names. The same names in the input edgelist.

Value

actor ID as integer value.

Methods (by class)

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 actor ID from the actor name
getActorID(x = reh, actorName = c("Francesca","Kayla"))


[Package remify version 3.2.6 Index]