Sub-group error

27 views
Skip to first unread message

Grace Chen

unread,
May 16, 2024, 2:21:54 PM5/16/24
to gimme-r
Hi GIMME community,

I am running into this error, under subgroup-level search: Error in modularity.igraph(graph.adjacency(sim, mode = "undirected"),  :
  Membership is not a numerical vector.

I thought it had to do with my data setup, but the same error came up when I tried it with the sample data. I think the issue comes from line 241 in determine.subgroups.R: 
sub$modularity  <- modularity(graph.adjacency(sim, mode = "undirected"), sub_mem$sub_membership)

Just to confirm, in both setups (sample data and actual data), the data frame containing the subgroup labels has exactly two columns -- the first of class character and the second integer (the actual grouping label). 

Could someone help me with this error please?

Thanks,
Grace
Example Data.zip
Screenshot 2024-05-15 at 16.47.56.png

Katie Gates

unread,
May 21, 2024, 4:19:26 PM5/21/24
to gimme-r
thanks for notifying us - the GitHub version should work. We'll be pushing to CRAN soon!
Reply all
Reply to author
Forward
0 new messages