getTypeName | R Documentation |
A function that given a vector of type ID's returns the corresponding vector of type (input) names.
getTypeName(x, typeID = NULL)
## S3 method for class 'remify'
getTypeName(x, typeID = NULL)
x |
a |
typeID |
a vector of type ID's. The ID value can range between |
character vector of types' names.
getTypeName(remify)
: return type's name from type's ID
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.