Learn R Programming

remify (version 3.2.8)

getTypeName: getTypeName

Description

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

Usage

getTypeName(x, typeID = NULL)

# S3 method for remify getTypeName(x, typeID = NULL)

Value

character vector of types' names.

Arguments

x

a remify object.

typeID

a vector of type ID's. The ID value can range between 1 and C (number of event types in the network).

Methods (by class)

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

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 name from type ID
getTypeName(x = reh, typeID = c(1,3))

Run the code above in your browser using DataLab