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