getTypeID {remify} | R Documentation |
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 class 'remify'
getTypeID(x, typeName = NULL)
Arguments
x |
a |
typeName |
a vector of type names. The same names in the input edgelist. |
Value
type ID as integer value.
Methods (by class)
-
getTypeID(remify)
: return type's ID from type's name
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 ID from the type name
getTypeID(x = reh, typeName = c("conflict","cooperation"))
[Package remify version 3.2.6 Index]