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