getTypeName {remify} | R Documentation |
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 class 'remify'
getTypeName(x, typeID = NULL)
Arguments
x |
a |
typeID |
a vector of type ID's. The ID value can range between |
Value
character vector of types' names.
Methods (by class)
-
getTypeName(remify)
: return type's name from type's ID
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 type name from type ID
getTypeName(x = reh, typeID = c(1,3))
[Package remify version 3.2.6 Index]