statnet / networkDynamic

Dynamic Extensions for Network Objects
10 stars 1 forks source link

vertex.id not being recognized as numeric in vertex.spells #14

Open tedmoorman opened 2 years ago

tedmoorman commented 2 years ago

I'm trying to replicate the results here. For some reason, when using the networkDynamic function, I receive the following error:

Error in networkDynamic(thenetwork, edge.spells = PHDynamicEdges, vertex.spells = PHDynamicNodes) : 
  vertex.spells requires the vertex.id column to be numeric

I explicitly import vertex.id as a numeric column. So, it's not clear why I'm getting this message.

Here is the output from my console, including the output from sessionInfo(): console-output-from-temporal-network-analysis-with-r.txt

Here is the R code I'm using: temporal-network-analysis-with-r.R.txt

Here are the csv files downloaded from the aforementioned website: TNAWR_DynamicNodes.csv TNAWR_DynamicEdges.csv TNAWR_StaticEdgelist.csv TNAWR_VertexAttributes.csv

tedmoorman commented 2 years ago

Update: I had to go the route of a network list to get everything to work for me. The example here was very helpful. I'm not sure if this is ideal though ...