我在 R 中遇到了两个关于 tnet 函数的意外错误。我的边缘列表:
Person Event
1 a
2 b
3 c
edgelist <- as.matrix("file.csv")
edgelist_in_igraph <- graph.edgelist(edgelist)
edgelist_in_tnet <- as.tnet(edgeist_in_igraph)
cluster_coefficients <- clustering_local_tm(edgelist_in_tnet)
> error: "max not meaningful for factors"
如果我尝试使其成为一种模式:
onemode <- projecting_tm(tnet, method="Newman")
>error: "arguments must have same length"
有任何想法吗?如果这里有人以前使用过 tnet,那么任何示例都会非常有帮助。