我试图通过像group这样具有多个值的顶点标签来计算兼容性: 我知道如何根据像性别这样的标签顶点来计算assortativity.nominal
assortativity.nominal(graph,types=factor(V(graph[[g]])$gender),directed=TRUE)
但如何计算像团体或教育这样的标签?
vertex group education
1 ["1105460"] ["1105460"]
2 ["2301561","278628"] ["2301561","278628"]
3 ["6002301","1105460","1382948"] ["6002301","1105460","1382948"]
4 ["6002301","278628","1105460"] ["6002301","278628","1105460"]