我有一个 Pajek 格式的小型 2 顶点网络,我想使用statnet
. 网络没有弧或边,只有这 2 个顶点。不幸的是,当我使用时read.paj
,它只是返回NULL
。重现此的代码是:
帕杰克文件:
*Vertices 2
1 1231062
2 1231095
*Arcs
*Edges
代码:
require(statnet)
read.paj("SC1C1W2Sch122.net", debug = TRUE)
# [1] "nextline called... new loop started"
# [1] "nextline called... new loop started"
# [1] "arc or edge lines present"
# [1] "arc or edge lines present"
# [1] "nextline called... new loop started"
# [1] "nnetworks= 0"
# [1] "network.names= "
# [1] "vertex null? FALSE"
# [1] "network.title= SC1C1W2Sch122"
# [1] "vector null? TRUE"
# [1] "colnames.vector= "
# [1] "projects null? TRUE"
# [1] "nprojects= 0"
# [1] "names.projects= "
# NULL
有任何想法吗?