Learn R Programming

remify (version 3.2.8)

getDyadID: getDyadID

Description

A function that given a vector of names as to actor1, actor2 and type returns the corresponding dyad ID. The names to supply are the original input names of the edgelist before the processing via the function remify::remify().

Usage

getDyadID(x, actor1, actor2, type)

# S3 method for remify getDyadID(x, actor1, actor2, type)

Value

dyad ID as integer value.

Arguments

x

a remify object.

actor1

[character] name of actor1.

actor2

[character] name of actor2.

type

[character] name of type.

Methods (by class)

  • getDyadID(remify): return dyad's ID from dyad's composition

Examples

Run this code

# 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 ID from dyad composition (names of actor1, actor2 and type)
getDyadID(x = reh, actor1 = "Francesca", actor2 = "Kayla", type = "conflict")

Run the code above in your browser using DataLab