Learn R Programming

remify (version 3.2.8)

getTypeID: getTypeID

Description

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

Usage

getTypeID(x, typeName = NULL)

# S3 method for remify getTypeID(x, typeName = NULL)

Value

type ID as integer value.

Arguments

x

a remify object.

typeName

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

Methods (by class)

  • getTypeID(remify): return type's ID from type's name

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 type ID from the type name
getTypeID(x = reh, typeName = c("conflict","cooperation"))

Run the code above in your browser using DataLab